release method

void release(
  1. int pointer
)

Releases a hold, allowing the arena to be swept.

If a sweep was attempted on a held arena, the sweep will be done on release.

See also:

Implementation

void release(int pointer) {
  final _GestureArena? state = _arenas[pointer];
  if (state == null) {
    return; // This arena either never existed or has been resolved.
  }
  state.isHeld = false;
  assert(_debugLogDiagnostic(pointer, 'Releasing', state));
  if (state.hasPendingSweep) {
    sweep(pointer);
  }
}