ShakeWidget constructor

const ShakeWidget({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 700),
  4. ShakePreset preset = ShakePreset.heavy,
  5. ShakeConfig? customConfig,
})

Implementation

const ShakeWidget({
  super.key,
  required this.child,
  this.duration = const Duration(milliseconds: 700),
  this.preset = ShakePreset.heavy,
  this.customConfig,
});