replace method

void replace(
  1. String path, {
  2. Map<String, String> pathParams = const {},
  3. Map<String, String> queryParams = const {},
})

replace page stack

Implementation

void replace(
  String path, {
  Map<String, String> pathParams = const {},
  Map<String, String> queryParams = const {},
}) {
  final notifier = getNavShellNotifier(shellPath);
  notifier.replace(
    path,
    pathParams: pathParams,
    queryParams: queryParams,
  );
}