popAndPushNamed method

dynamic popAndPushNamed(
  1. String name
)

Implementation

popAndPushNamed(String name) {
  if (pages.length > 0) {
    pages.removeLast();
  }
  pushNamed(name);
}