shake method
Applies a shaking effect to the camera for duration seconds and with
intensity expressed in pixels. If focusPlayerOnFinishShake is true,
camera will focus on player after shaking instead of its last position
Implementation
void shake({
double? duration,
double? intensity,
}) {
_shakeTimer += duration ?? defaultShakeDuration;
_shakeIntensity = intensity ?? defaultShakeIntensity;
}