isMonochromatic property

  1. @override
bool get isMonochromatic
inherited

Returns true if this color is monochromatic.

Implementation

@override
bool get isMonochromatic =>
    ColorMath.round(a) == 0 && ColorMath.round(b) == 0;