lastOrNull property
RouteMatch?
lastOrNull
The last leaf route or null if matches is empty
If the last RouteMatchBase from matches is a ShellRouteMatch, it recursively goes into its ShellRouteMatch.matches until it reach the leaf RouteMatch.
Implementation
RouteMatch? get lastOrNull {
if (matches.isEmpty) {
return null;
}
return last;
}