Unverified Commit de4c0b19 authored by Martin Kustermann's avatar Martin Kustermann Committed by GitHub

Use `double.isNaN` instead of `... == double.nan` (which is always false) (#115424)

parent 69269602
......@@ -597,7 +597,7 @@ class _ContrastReport {
count += entry.value;
}
final double averageLightness = totalLightness / count;
assert(averageLightness != double.nan);
assert(!averageLightness.isNaN);
MapEntry<Color, int>? lightColor;
MapEntry<Color, int>? darkColor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment