popAndPushNamedRoute<T extends Object?, TO extends Object?> method
void
popAndPushNamedRoute<T extends Object?, TO extends Object?>(})
Pops the current route off the navigator stack and pushes a named route onto the stack.
The routeName parameter specifies the name of the route to push.
The result parameter can be used to return a value from the popped
route.
The args parameter can be used to pass arguments to the new route.
Implementation
void popAndPushNamedRoute<T extends Object?, TO extends Object?>(
String routeName, {
TO? result,
Object? args,
}) {
Navigator.of(this).popAndPushNamed<T, TO>(
routeName,
result: result,
arguments: args,
);
}