InterpolateConfig constructor
InterpolateConfig(
- List<
double> inputRange, - List<
double> outputRange, { - Extrapolate extrapolate = Extrapolate.EXTEND,
- Extrapolate? extrapolateLeft,
- Extrapolate? extrapolateRight,
Implementation
InterpolateConfig(this.inputRange, this.outputRange,
{this.extrapolate = Extrapolate.EXTEND,
this.extrapolateLeft,
this.extrapolateRight}) {
checkMinElements('inputRange', inputRange);
checkMinElements('outputRange', outputRange);
checkNonDecreasing('inputRange', inputRange);
invariant(inputRange.length == outputRange.length,
['inputRange and outputRange must be the same length.']);
}