Skip to content

Commit

Permalink
Update src/content/release/breaking-changes/wide-gamut-framework.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sfshaza2 authored Sep 13, 2024
1 parent 5bca9f9 commit f2ff5d0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/content/release/breaking-changes/wide-gamut-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ final x = color.withValues(alpha: 0.0);

### Equality

Now that Color will be storing its color components as floating-point numbers
equality will work slightly different. When calculating colors there may be tiny
difference in numbers which could be considered equal. To accommodate this use
the [`closeTo`][] matcher or the [`isColorSameAs`][] matcher.
Once `Color` stores its color components as floating-point numbers,
equality works slightly differently.
When calculating colors there might be tiny
difference in values that could be considered equal.
To accommodate this use the [`closeTo`][] matcher or the [`isColorSameAs`][] matcher.

```dart
// Before
Expand Down

0 comments on commit f2ff5d0

Please sign in to comment.