setDuration method

dynamic setDuration(
  1. dynamic duration
)

Implementation

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

  return stopWarping();
}