onPointerMove method

  1. @override
void onPointerMove(
  1. PointerMoveEvent event
)
override

Implementation

@override
void onPointerMove(PointerMoveEvent event) {
  final position = event.localPosition;
  if (containsLocalPoint(position)) {
    if (!_isHovered) {
      _doHoverEnter();
    }
  } else {
    if (_isHovered) {
      _doHoverExit();
    }
  }
}