ShakingAnimation constructor

const ShakingAnimation({
  1. Key? key,
  2. required Widget child,
  3. required Duration duration,
  4. bool repeat = true,
})

Implementation

const ShakingAnimation({
  super.key,
  required this.child,
  required this.duration,
  // Default value for repeat is true.
  this.repeat = true,
});