removeRoute method

void removeRoute([
  1. Object? result
])

If the route corresponds to a StandardPageInterface, it performs necessary cleanup and updates the page stack accordingly. If the route does not correspond to a StandardPageInterface, it directly removes the route from the navigator.

Implementation

void removeRoute([Object? result]) {
  Router.of(this).removeRoute(this, result);
}