onPointerEnter method

void onPointerEnter(
  1. String id,
  2. void callback()
)

Called on pointer enter.

Implementation

void onPointerEnter(String id, void Function() callback) {
  onWindowEvent(id, 'pointerEnter', (_) => callback());
}