rootContext top-level property
Context
get
rootContext
The root context that is used by default.
This is initialized to a new context with default configuration, but can be overridden by the user.
Implementation
Context get rootContext => _rootContext ??= Context(Config());
set
rootContext
(Context context)
Implementation
set rootContext(Context context) {
if (_rootContext != null) {
throw StateError('Root context already initialized');
}
_rootContext = context;
}