shake method

void shake({
  1. double? duration,
  2. double? intensity,
})
inherited

Applies a shaking effect to the camera for duration seconds and with intensity expressed in pixels.

Implementation

void shake({double? duration, double? intensity}) {
  _shakeTimer += duration ?? defaultShakeDuration;
  _shakeIntensity = intensity ?? defaultShakeIntensity;
}