isMonochromatic property

  1. @override
bool get isMonochromatic
override

Returns true if this color is monochromatic.

Implementation

@override
bool get isMonochromatic {
  final perceivedBrightness = ColorMath.round(this.perceivedBrightness);
  return perceivedBrightness == 0 || ColorMath.round(saturation) == 0;
}