isMonochromatic property

  1. @override
bool isMonochromatic
override

Returns true if this color is monochromatic.

Implementation

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