registerGlobalContextManager function
void
registerGlobalContextManager(
- 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;
}