v3
This commit is contained in:
37
lib/v2/app/navigation/router/iroute.dart
Normal file
37
lib/v2/app/navigation/router/iroute.dart
Normal file
@@ -0,0 +1,37 @@
|
||||
class IRoute {
|
||||
final String path;
|
||||
final List<IRoute> children;
|
||||
|
||||
const IRoute({required this.path, this.children = const []});
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'IRoute{path: $path, children: $children}';
|
||||
}
|
||||
|
||||
List<String> list(){
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
const List<IRoute> kDestinationsIRoutes = [
|
||||
IRoute(
|
||||
path: '/color',
|
||||
children: [
|
||||
IRoute(path: '/color/add'),
|
||||
IRoute(path: '/color/detail'),
|
||||
],
|
||||
),
|
||||
IRoute(
|
||||
path: '/counter',
|
||||
),
|
||||
IRoute(
|
||||
path: '/user',
|
||||
),
|
||||
IRoute(
|
||||
path: '/settings',
|
||||
),
|
||||
];
|
||||
Reference in New Issue
Block a user