changeTime method

void changeTime(
  1. double time
)

Implementation

void changeTime(double time) => _speed = 1 / time;