AnimatedButton constructor

const AnimatedButton({
  1. Key? key,
  2. required VoidCallback onPressed,
  3. required Widget child,
  4. double pressedScale = 0.94,
  5. Duration duration = AppDuration.fast,
  6. BorderRadius? borderRadius,
  7. VoidCallback? onLongPress,
})

Implementation

const AnimatedButton({
  super.key,
  required this.onPressed,
  required this.child,
  this.pressedScale = 0.94,
  this.duration = AppDuration.fast,
  this.borderRadius,
  this.onLongPress,
});