shake method

void shake({
  1. double intensity = 10.0,
  2. Duration? duration,
})

Implementation

void shake({double intensity = 10.0, Duration? duration}) {
  viewfinder.add(
    ShakeEffect(
      intensity: intensity,
      duration: duration ?? const Duration(milliseconds: 300),
    ),
  );
}