popAndPushNamed abstract method

void popAndPushNamed(
  1. BuildContext context,
  2. String routeName, {
  3. Object? arguments,
})

Pop the current route off and push a named route in its place.

Implementation

void popAndPushNamed(
  BuildContext context,
  String routeName, {
  Object? arguments,
});