range property

  1. @override
List<Y> get range
inherited

The scale's range that specifies the output values.

The list must contain two or more elements. Any value that is supported by the underlying interpolator (see interpolate for examples) will work, though note that numeric ranges are required for ScaleContinuousNumberExtension.invert.

Implementation

@override
List<Y> get range => _range.sublist(0);
  1. @override
set range (List<Y> range)
inherited

Implementation

@override
set range(List<Y> range) {
  _range = List<Y>.of(range);
  _rescale();
}