up method

void up(
  1. int pointer,
  2. Offset position, {
  3. required double width,
})

Implementation

void up(final int pointer, final Offset position, {required final double width}) {
  if (_activePointers.remove(pointer) == null || _activePointers.isNotEmpty) {
    return;
  }

  final didSequenceMove = _didSequenceMove;
  _resetSequence();
  if (didSequenceMove || nativeTapFeedback) {
    return;
  }

  if (position.dx < legacyEdgeWidth || (width - position.dx) < legacyEdgeWidth) {
    onEdgeTap();
  } else {
    onCenterTap();
  }
}