horario del profesional
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export 'location_preferences.dart';
|
||||
|
||||
enum LocationPreferences { office, delivery }
|
||||
|
||||
int enumToInt(LocationPreferences state) {
|
||||
return state.index;
|
||||
}
|
||||
|
||||
LocationPreferences intToEnum(int value) {
|
||||
return LocationPreferences.values[value];
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export 'location_preferences.dart';
|
||||
export 'service_status.dart';
|
||||
@@ -0,0 +1,11 @@
|
||||
export 'service_status.dart';
|
||||
|
||||
enum ServiceStatus { pending, active, cancelled, completed }
|
||||
|
||||
int enumToIntService(ServiceStatus state) {
|
||||
return state.index;
|
||||
}
|
||||
|
||||
ServiceStatus intToEnumService(int value) {
|
||||
return ServiceStatus.values[value];
|
||||
}
|
||||
Reference in New Issue
Block a user