x property

double x

X position in color gamut.

Range: 0 - 1

Throws UnitIntervalException if x is set to something outside of the range 0 to 1 (inclusive).

Implementation

double get x => _x;
void x=(double x)

Implementation

set x(double x) {
  if (Validators.isUnitInterval(x)) {
    _x = x;
  } else {
    throw UnitIntervalException.withValue(x);
  }
}