popUntilNamed method
Page back until you find the page for name
.
If not found, return to the first page.
name
のページが見つかるまでページを戻ります。
見つからない場合は最初のページまで戻ります。
Implementation
void popUntilNamed(String name) {
popUntil((route) {
return route.settings.name == name;
});
}