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