mirrored_repositories/flutter_gift_manager/lib
import 'package:collection/collection.dart';

enum RouteName {
  // "/" - изначальный route, переход на котоый идет по умолчанию при старте приложения
  splash(route: "/"),
  //splash(route: "/splash"),
  gifts(route: "/gifts"),
  gift(route: "/gift"),
  //gift(route: "/"),
  home(route: "/home"),
  login(route: "/login"),
  registration(route: "/registration"),
  resetPassword(route: "/reset_password");

  static RouteName? find(String? name) =>
      values.firstWhereOrNull((routeName) => routeName.route == name);

  final String route;

  const RouteName({required this.route});
}
