InterpolateConfig constructor

InterpolateConfig(
  1. List<double> inputRange,
  2. List<double> outputRange, {
  3. Extrapolate extrapolate = Extrapolate.EXTEND,
  4. Extrapolate? extrapolateLeft,
  5. 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.']);
}