registerGlobalContextManager function

void registerGlobalContextManager(
  1. ContextManager contextManager
)

Implementation

void registerGlobalContextManager(ContextManager contextManager) {
  if (_contextManager != _noopContextManager) {
    throw StateError(
        'Global context manager is already registered, registerContextManager must be called only once.');
  }

  _contextManager = contextManager;
}