rootScope property

ZenScope get rootScope

Get the root scope for global dependencies

The root scope is created lazily on first access and persists for the lifetime of the application (until reset is called).

Implementation

static ZenScope get rootScope {
  if (_rootScope == null || _rootScope!.isDisposed) {
    _rootScope = ZenScope(name: 'RootScope');
    ZenLogger.logDebug('✨ Created root scope');
  }
  return _rootScope!;
}