mouseRegion method

Widget mouseRegion({
  1. required VoidCallback onTap,
  2. HitTestBehavior? behavior = HitTestBehavior.translucent,
  3. 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,
      ),
    );