replaceNamed method
void
replaceNamed(})
Replaces the top-most page of the page stack with the named route w/
optional parameters, e.g. name='person', params={'fid': 'f2', 'pid': 'p1'}
.
See also:
Implementation
void replaceNamed(
String name, {
Map<String, String> params = const <String, String>{},
Map<String, dynamic> queryParams = const <String, dynamic>{},
Object? extra,
}) {
replace(
namedLocation(name, params: params, queryParams: queryParams),
extra: extra,
);
}