AnimatedButton constructor
const
AnimatedButton({
- Key? key,
- required VoidCallback onPressed,
- required Widget child,
- double pressedScale = 0.94,
- Duration duration = AppDuration.fast,
- BorderRadius? borderRadius,
- 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,
});