setDuration method

dynamic setDuration(
  1. dynamic duration
)

Implementation

setDuration(duration) {
  timeScale = _clip.duration / duration;

  return stopWarping();
}