PressRegion constructor

const PressRegion({
  1. Key? key,
  2. VoidCallback? onTap,
  3. ValueChanged<bool>? onHover,
  4. ValueChanged<bool>? onPressedChanged,
  5. ValueChanged<bool>? onFocusChange,
  6. ShapeBorder? shape,
  7. Color? fill,
  8. WidgetStateProperty<Color?>? overlay,
  9. Color? hoverColor,
  10. bool canRequestFocus = true,
  11. bool excludeFromSemantics = false,
  12. bool enableFeedback = true,
  13. MouseCursor? mouseCursor,
  14. required Widget child,
})

Implementation

const PressRegion({
  super.key,
  this.onTap,
  this.onHover,
  this.onPressedChanged,
  this.onFocusChange,
  this.shape,
  this.fill,
  this.overlay,
  this.hoverColor,
  this.canRequestFocus = true,
  this.excludeFromSemantics = false,
  this.enableFeedback = true,
  this.mouseCursor,
  required this.child,
});