onMountHandler static method

void onMountHandler(
  1. PointerMoveCallbacks instance
)

Implementation

static void onMountHandler(PointerMoveCallbacks instance) {
  final game = instance.findRootGame()!;
  const key = MouseMoveDispatcherKey();
  if (game.findByKey(key) == null) {
    final dispatcher = PointerMoveDispatcher();
    game.registerKey(key, dispatcher);
    game.add(dispatcher);
  }
}