acceptGesture method

  1. @override
void acceptGesture(
  1. int pointer

Called when this member wins the arena for the given pointer id.


void acceptGesture(int pointer) {
  assert(_pointers != null);
  final MultiDragPointerState? state = _pointers![pointer];
  if (state == null) {
    return;  // We might already have canceled this drag if the up comes before the accept.
  state.accepted((Offset initialPosition) => _startDrag(initialPosition, pointer));