ShakeEffect constructor

ShakeEffect({
  1. required double intensity,
  2. required Duration duration,
  3. void onComplete()?,
})

Implementation

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