isWhite property

  1. @override
bool get isWhite
inherited

Returns true if this color is pure white.

Implementation

@override
bool get isWhite =>
    ColorMath.round(cyan) == 0 &&
    ColorMath.round(magenta) == 0 &&
    ColorMath.round(yellow) == 0 &&
    ColorMath.round(black) == 0;