range property
See ScaleLinear.range
.
When the range
is specified, the given two-element list is converted to
an interpolation function using interpolate
.
final color = ScaleSequential(…)..range = ["red", "blue"];
The above is equivalent to:
final color = ScaleSequential(interpolator: interpolate("red", "blue"));
Implementation
@override
get range => [interpolator(0), interpolator(1)];