interpolation method

Tween interpolation([
  1. num interpolationFunction(
    1. List,
    2. num
    )?
])

Implementation

Tween interpolation([num Function(List, num)? interpolationFunction]) {
  interpolationFunction ??= Interpolation.linear;
  this._interpolation = interpolationFunction;
  return this;
}