navigatorContext property
BuildContext
get
navigatorContext
Retrieves the BuildContext
of the Navigator.
Implementation
BuildContext get navigatorContext {
assert(_navigatorKey.currentContext != null,
'Navigator does not exist yet. Wait for the first build to finish before using [navigatorContext].');
return _navigatorKey.currentContext!;
}