mouseRegion method

MouseRegion mouseRegion({
  1. PointerEnterEventListener? onEnter,
  2. PointerHoverEventListener? onHover,
  3. PointerExitEventListener? onExit,
  4. bool opaque = true,
  5. HitTestBehavior? hitTestBehavior,
  6. MouseCursor cursor = MouseCursor.defer,
  7. Key? key,
})

Implementation

MouseRegion mouseRegion({
  PointerEnterEventListener? onEnter,
  PointerHoverEventListener? onHover,
  PointerExitEventListener? onExit,
  bool opaque = true,
  HitTestBehavior? hitTestBehavior,
  MouseCursor cursor = MouseCursor.defer,
  Key? key,
}) =>
    MouseRegion(
      onEnter: onEnter,
      onHover: onHover,
      onExit: onExit,
      opaque: opaque,
      hitTestBehavior: hitTestBehavior,
      child: this,
    );