Skip to content

Commit 34f98c7

Browse files
committed
Update color API tests
1 parent 422f037 commit 34f98c7

File tree

2 files changed

+262
-167
lines changed

2 files changed

+262
-167
lines changed

lib/src/value/color.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class SassColor extends Value {
8383
/// [missing]: https://www.w3.org/TR/css-color-4/#missing
8484
///
8585
/// @nodoc
86+
@internal
8687
final double? channel0OrNull;
8788

8889
/// This color's second channel.
@@ -118,6 +119,7 @@ class SassColor extends Value {
118119
/// [missing]: https://www.w3.org/TR/css-color-4/#missing
119120
///
120121
/// @nodoc
122+
@internal
121123
final double? channel1OrNull;
122124

123125
/// Returns whether this color's third channel is [missing].
@@ -156,6 +158,7 @@ class SassColor extends Value {
156158
/// [missing]: https://www.w3.org/TR/css-color-4/#missing
157159
///
158160
/// @nodoc
161+
@internal
159162
final double? channel2OrNull;
160163

161164
/// The format in which this color was originally written and should be
@@ -624,8 +627,9 @@ class SassColor extends Value {
624627

625628
/// Converts this color to [space].
626629
///
627-
/// If [legacyMissing] is false, this will convert missing channels in
628-
/// legacy color spaces to zero if a conversion occurs.
630+
/// If [legacyMissing] is false, this will convert missing channels in legacy
631+
/// color spaces to zero if a conversion occurs. Otherwise, they remain
632+
/// missing after the conversion.
629633
SassColor toSpace(ColorSpace space, {bool legacyMissing = true}) {
630634
if (this.space == space) return this;
631635

0 commit comments

Comments
 (0)