ShakeEffect({ required this.intensity, required this.duration, this.onComplete, }) { _shakeTimer = duration.inMilliseconds / 1000; }