PopPageWithRouteMatchCallback typedef

PopPageWithRouteMatchCallback = bool Function(Route route, dynamic result, RouteMatchBase match)

Signature for a function that takes in a route to be popped with the result and returns a boolean decision on whether the pop is successful.

The match is the corresponding RouteMatch the route associates with.

Used by of RouteBuilder.onPopPageWithRouteMatch.

Implementation

typedef PopPageWithRouteMatchCallback = bool Function(
    Route<dynamic> route, dynamic result, RouteMatchBase match);