onPop method

bool onPop(
  1. Route route,
  2. dynamic result
)

Implementation

bool onPop(Route<dynamic> route, dynamic result) {
  if (parser.histories[parser.currentTab].length > 1) {
    parser.histories[parser.currentTab].removeLast();
    to(parser.histories[parser.currentTab].last);

    //notifyListeners();
    //这里增加一个to
  }
  return route.didPop(result);
}