mc_gallery/lib/features/core/abstracts/router/routes.dart

28 lines
507 B
Dart
Raw Normal View History

2022-12-19 13:03:38 +00:00
enum Routes {
home(RoutesInfo(
2022-12-25 21:17:59 +00:00
routePath: '/',
2022-12-19 13:03:38 +00:00
routeName: 'Home',
)),
imageCarousel(RoutesInfo(
2022-12-20 20:52:24 +00:00
routePath: 'image_carousel',
2022-12-19 13:03:38 +00:00
routeName: 'Image Carousel',
));
final RoutesInfo _routeInfo;
String get routePath => _routeInfo.routePath;
String get routeName => _routeInfo.routeName;
const Routes(this._routeInfo);
}
class RoutesInfo {
const RoutesInfo({
required this.routePath,
required this.routeName,
});
2023-01-01 12:04:22 +00:00
final String routePath;
final String routeName;
2022-12-19 13:03:38 +00:00
}