AnimationRunner constructor
Creates an animation runner with the specified parameters.
Parameters
from- The starting value.to- The target value.duration- The animation duration.curve- The easing curve.
Implementation
AnimationRunner(this.from, this.to, this.duration, this.curve);