kDefaultScreenPredicate property

ScreenPredicate kDefaultScreenPredicate
getter/setter pair

Verify if route is a Screen. The incoming route is a Screen if the following condition is met:

  • route is a PageRoute

Implementation

static ScreenPredicate kDefaultScreenPredicate = (Route<dynamic> route) {
  return route is PageRoute;
};