PressableWidget constructor

const PressableWidget({
  1. required Widget child,
  2. SmartBorder? border,
  3. Key? key,
  4. BorderRadius? borderRadius,
  5. Color? pressedColor,
  6. Color? backgroundColor,
  7. VoidCallback? onPressed,
  8. bool hasVibration = true,
  9. 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,
});