defaultRoute property

GoRoute? defaultRoute

The default route of this branch, i.e. the first descendant GoRoute.

This route will be used when loading the branch for the first time, if an initialLocation has not been provided.

Implementation

GoRoute? get defaultRoute =>
    RouteBase.routesRecursively(routes).whereType<GoRoute>().firstOrNull;