onPointerExit method
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(),
);
}