domain property

  1. @override
List<num> get domain
override

The scale's domain that specifies the input values.

final color = ScaleQuantize(range: schemeBlues[9]);
color.domain = [0, 100];

color.domain; // [0, 100]

The two-element list of numbers must be in ascending order or the behavior of the scale is undefined.

Implementation

@override
get domain => [_x0, _x1];
  1. @override
set domain (List<num> domain)
override

Implementation

@override
set domain(domain) {
  _x0 = domain[0];
  _x1 = domain[1];
  _rescale();
}