ShakeAnimation constructor

const ShakeAnimation({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 500),
})

The duration of the shake animation. Constructor for the ShakeAnimation widget.

Implementation

/// Constructor for the ShakeAnimation widget.
const ShakeAnimation({
  super.key,
  required this.child,
  this.duration = const Duration(milliseconds: 500),

  /// Default animation duration.
});