popUntil method

void popUntil(
  1. String routeName
)

Pop until specific route

Implementation

void popUntil(String routeName) {
  navigator?.popUntil((route) => route.settings.name == routeName);
}