PressableWidget constructor
const
PressableWidget({
- required Widget child,
- SmartBorder? border,
- Key? key,
- BorderRadius? borderRadius,
- Color? pressedColor,
- Color? backgroundColor,
- VoidCallback? onPressed,
- bool hasVibration = true,
- double? disabledOpacity = 0.5,
Implementation
const PressableWidget({
required this.child,
this.border,
super.key,
this.borderRadius,
this.pressedColor,
this.backgroundColor,
this.onPressed,
this.hasVibration = true,
this.disabledOpacity = 0.5,
});