replaceNamed<T> method
Replaces the top-most page with the named route and optional parameters, preserving the page key.
Implementation
Future<T?> replaceNamed<T>(
String name, {
Map<String, String> pathParameters = const <String, String>{},
Map<String, dynamic> queryParameters = const <String, dynamic>{},
Object? extra,
}) =>
App.goRouter?.replaceNamed<T>(
name,
pathParameters: pathParameters,
queryParameters: queryParameters,
extra: extra,
) ??
Future.value();