pushNamedAndRemove method

dynamic pushNamedAndRemove(
  1. String name
)

Implementation

pushNamedAndRemove(String name) {
  if (pages.length > 0) {
    pages.clear();
  }
  pushNamed(name);
}