reset method

void reset({
  1. double speedMultiplier = 1,
})

Resets the animation to the starting frame

Implementation

void reset({double speedMultiplier = 1}) =>
    _time = (speedMultiplier >= 0) ? animation.startTime : animation.endTime;