pop method
Attempt to pop from any implicit navigators in this navigator's navigatorTree.
Navigators are tested in reverse level order-the most nested navigators attempt to pop first. Returns true if popping is successful. If two or more navigators are at the same level, they are tested in order of their pop priority: least to greatest followed by null.
If searchTree
is set to false, only this navigator will attempt to
handle the pop.
Implementation
bool pop({bool searchTree = true}) {
if (!searchTree) {
return _pop();
}
return navigatorTree.reversed
.expand(_prioritySorted)
.any((navigator) => navigator._pop());
}