Shaker constructor

const Shaker({
  1. Key? key,
  2. required Widget child,
  3. bool isShaking = false,
  4. Duration? duration,
  5. Function? onComplete,
  6. Curve? curve,
  7. double? hz,
  8. double? rotation,
  9. Offset? offset,
})

Creates a Shaker widget.

The child parameter must not be null.

Implementation

const Shaker({
  super.key,
  required this.child,
  this.isShaking = false,
  this.duration,
  this.onComplete,
  this.curve,
  this.hz,
  this.rotation,
  this.offset,
});