ShakeAnimation constructor
const
ShakeAnimation({})
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.
});