LinearInterpolation constructor
LinearInterpolation({
- required List<
InterpolationNode> nodes,
Creates a LinearInterpolation instance from the given interpolation nodes.
There must only be 2 nodes.
Implementation
LinearInterpolation({
required List<InterpolationNode> nodes,
}) : assert(nodes.length == 2, 'There must exactly be 2 nodes!'),
super(nodes);