handlerPointerCancel method

  1. @override
bool handlerPointerCancel(
  1. PointerCancelEvent event
)
override

Implementation

@override
bool handlerPointerCancel(PointerCancelEvent event) {
  _fingers.removeWhere((element) => element.id == event.pointer);
  if (_startPinch) {
    _startPinch = false;
    onPinchEnd();
  }
  return super.handlerPointerCancel(event);
}