pushReplaceNamed<T> static method
Future<T?>
pushReplaceNamed<T>(
- BuildContext context,
- String path, {
- bool isDialog = false,
- Object? arguments,
Implementation
static Future<T?> pushReplaceNamed<T>(BuildContext context, String path,
{bool isDialog = false,
Object? arguments,
bool isRootNavigator = false}) async {
final T? value = await Navigator.of(context, rootNavigator: isRootNavigator)
.pushReplacementNamed(path, arguments: arguments);
return value;
}