replaceAllWithName method

Future<void> replaceAllWithName(
  1. String name, {
  2. Map<String, dynamic>? params,
})

remove all pages with the page with this path and this params

Implementation

Future<void> replaceAllWithName(String name,
        {Map<String, dynamic>? params}) =>
    navigator.replaceAllWithName(name, params: params);