endScope method

void endScope(
  1. String id, {
  2. bool purgeZeroize = false,
})

Immediately disposes the scope for id and removes it from the registry.

Implementation

void endScope(String id, {bool purgeZeroize = false}) {
  final scope = _scopes.remove(id);
  scope?.dispose(purgeZeroize: purgeZeroize);
}