flattened property
Returns a flattened list of this route and it's sub-routes
e.g if we have = Route1[Route2Route3
]
the result is Route1,Route2,Route3
Implementation
List<PageRouteInfo> get flattened {
return [this, if (hasChildren) ...initialChildren!.last.flattened];
}