PressRegion constructor
const
PressRegion({
- Key? key,
- VoidCallback? onTap,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onPressedChanged, - ValueChanged<
bool> ? onFocusChange, - ShapeBorder? shape,
- Color? fill,
- WidgetStateProperty<
Color?> ? overlay, - Color? hoverColor,
- bool canRequestFocus = true,
- bool excludeFromSemantics = false,
- bool enableFeedback = true,
- MouseCursor? mouseCursor,
- 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,
});