close method

  1. @override
  2. @nonVirtual
Future<void> close()
override

Frees everything the pass holds. Called exactly once by core on every path after construction (load failure, close, host shutdown). Idempotent; must not throw for a pass that never loaded.

Implementation

@override
@nonVirtual
Future<void> close() async {
  if (_closed) return;
  _closed = true;
  if (_graphOpening) await closeGraph();
}