Future<void> setSpeed(double speed) async { this.speed = speed.clamp(0.0, 1.0); await notify(PlayerEvent.speed); }