resume method

void resume({
  1. double? newTimeScale,
})

Resumes the component by setting the time scale to 1.0 or to the given value.

Implementation

void resume({double? newTimeScale}) {
  if (timeScale == 0.0) {
    timeScale = newTimeScale ?? 1.0;
  }
}