ShakeAnimationWidget constructor

const ShakeAnimationWidget({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 500),
  4. double shakeSpeed = 6.0,
  5. double shakeThreshold = 10.0,
  6. int shakeCount = 4,
})

Implementation

const ShakeAnimationWidget({
  super.key,
  required this.child,
  this.duration = const Duration(milliseconds: 500),
  this.shakeSpeed = 6.0,
  this.shakeThreshold = 10.0,
  this.shakeCount = 4, // Number of shakes
});