leaveScope method

Future<void> leaveScope(
  1. String scopeName
)

Signals that the application has left the scope with the given scopeName.

This will notify all registered ScopeHandlers to handle the scope exit.

Implementation

Future<void> leaveScope(final String scopeName) async {
  for (final scopeHandler in _scopeHandlers) {
    await scopeHandler.handle(LeaveScope(scopeName: scopeName));
  }
  notifyObservers();
}