Line data Source code
1 : part of 'main.dart'; 2 : 3 : /// Describes the current route 4 : /// 5 : /// The gets formed in [VRouteElement.buildRoute] 6 : class VRoute { 7 : /// The top [VRouteElementNode] of the tree which form the current route 8 : final VRouteElementNode vRouteElementNode; 9 : 10 : /// A list of every [VRouteElement]s in the route 11 : /// 12 : /// Basically a flatten version of [vRouteElementNode] 13 : final List<VRouteElement> vRouteElements; 14 : 15 : /// The list of [Page] in the route, the can be used to put in a Navigator 16 : /// 17 : /// Each page may host other navigator to create nesting. This is not flatten. 18 : final List<Page> pages; 19 : 20 : /// The list of every pathParameters (and their associated current value) of the current route 21 : final Map<String, String> pathParameters; 22 : 23 12 : VRoute({ 24 : required this.vRouteElementNode, 25 : required this.pages, 26 : required this.pathParameters, 27 : required this.vRouteElements, 28 : }); 29 : }