popUntilNamed method

Future<void> popUntilNamed(
  1. String name
)

Pops the page to the page with the specified path.

Enter the pathname of the page in name.

Implementation

Future<void> popUntilNamed(String name) async {
  popUntil((route) {
    return route.settings.name == name;
  });
}