onLongPressCancel method

  1. @mustCallSuper
void onLongPressCancel(
  1. LongPressCancelEvent event
)

Implementation

@mustCallSuper
void onLongPressCancel(LongPressCancelEvent event) {
  _records.removeWhere((record) {
    if (record.pointerId == event.pointerId) {
      record.component.onLongPressCancel(event);
      return true;
    }
    return false;
  });
}