mouseRegion method
Widget
mouseRegion({
- required VoidCallback onTap,
- HitTestBehavior? behavior = HitTestBehavior.translucent,
- MouseCursor cursor = SystemMouseCursors.click,
Implementation
Widget mouseRegion({
required VoidCallback onTap,
HitTestBehavior? behavior = HitTestBehavior.translucent,
MouseCursor cursor = SystemMouseCursors.click,
}) =>
MouseRegion(
cursor: cursor,
child: GestureDetector(
behavior: behavior,
onTap: onTap,
child: this,
),
);