removeRoute method

void removeRoute(
  1. String name, {
  2. int? id,
})

Navigation.removeRoute() shortcut.

Remove a specific route from the stack

id is for when you are using nested navigation, as explained in documentation

Implementation

void removeRoute(String name, {int? id}) {
  return searchDelegate(id).removeRoute(name);
}