maybePop method

void maybePop()

Consults the current route's Route.willPop method, and acts accordingly, potentially popping the route as a result; returns whether the pop request should be considered handled.

Implementation

void maybePop() {
  Navigator.of(this).maybePop();
}