MotionInterval constructor

MotionInterval([
  1. double _duration = 0.0,
  2. Curve? curve
])

Creates a new MotionInterval, typically you will want to pass in a duration to specify how long time the motion will take to complete.

Implementation

MotionInterval([this._duration = 0.0, this.curve]);