resolve method Null safety

  1. @override
void resolve(
  1. GestureDisposition disposition
)
override

Resolves this recognizer's participation in each gesture arena with the given disposition.

Implementation

@override
void resolve(GestureDisposition disposition) {
  if (disposition == GestureDisposition.rejected) {
    if (_longPressAccepted) {
      // This can happen if the gesture has been canceled. For example when
      // the buttons have changed.
      _reset();
    } else {
      _checkLongPressCancel();
    }
  }
  super.resolve(disposition);
}