isWhite property

  1. @override
bool get isWhite
override

Returns true if this color is pure white.

Implementation

@override
bool get isWhite =>
    ColorMath.round(lightness) >= 1 &&
    ColorMath.round(chromaticityA) <= 0 &&
    ColorMath.round(chromaticityB) <= 0;