currentNavigator property
NavigatorState
get
currentNavigator
Retrieves the current Navigator.
Implementation
NavigatorState get currentNavigator {
final tKey = currentNavigatorKey;
assert(
tKey?.currentState != null,
'Navigator does not exist yet. Wait for the first build to finish before using [navigator].',
);
return tKey!.currentState!;
}