onPointerExit method

  1. @override
void onPointerExit(
  1. PointerExitEvent event
)
override

Should be called when the pointer exits the canvas with the corresponding event.

Implementation

@override
void onPointerExit(PointerExitEvent event) {
  if (!value.supportedPointerKinds.contains(event.kind)) return;
  temporaryValue = _finishLineForState(value).copyWith(
    pointerPosition: null,
    activePointerIds:
        value.activePointerIds.where((id) => id != event.pointer).toList(),
  );
}