navigateToNamed method
dynamic
navigateToNamed(
Implementation
navigateToNamed(
String routeName, {
bool replace = false,
Map<String, String>? params,
Map<String, dynamic>? queryParams,
Map<String, dynamic>? extra,
}) {
if (navigatorKey.currentContext != null) {
if (replace) {
navigatorKey.currentContext!.goNamed(
routeName,
extra: extra ?? {},
params: params ?? {},
queryParams: queryParams ?? {},
);
} else {
(navigatorKey.currentContext!).goNamed(
routeName,
params: params ?? {},
queryParams: queryParams ?? {},
extra: extra ?? {},
);
}
}
}