isMonochromatic property

  1. @override
bool get isMonochromatic
override

Returns true if this color is monochromatic.

Implementation

@override
bool get isMonochromatic {
  final x = ColorMath.round(this.x);
  return x == ColorMath.round(y) && x == ColorMath.round(z);
}