registerNavigator static method
Register a nested navigator with FastNav
Each navigator name
can only be registered once. Subsequent
registrations will return the existing GlobalKey.
Implementation
static GlobalKey<NavigatorState> registerNavigator(
String name, {
GlobalKey<NavigatorState>? key,
}) =>
_navigatorKeys[name] ??= key ?? GlobalKey<NavigatorState>();