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

28 lines
515 B
Dart

enum Routes {
home(RoutesInfo(
routePath: '/gallery',
routeName: 'Home',
)),
imageCarousel(RoutesInfo(
routePath: '/image_carousel',
routeName: 'Image Carousel',
));
final RoutesInfo _routeInfo;
String get routePath => _routeInfo.routePath;
String get routeName => _routeInfo.routeName;
const Routes(this._routeInfo);
}
class RoutesInfo {
final String routePath;
final String routeName;
const RoutesInfo({
required this.routePath,
required this.routeName,
});
}