19 lines
322 B
Dart
19 lines
322 B
Dart
export 'service_status.dart';
|
|
|
|
enum ServiceStatus {
|
|
pending, // 0
|
|
acepted, // 1
|
|
denied, // 2
|
|
active, // 3
|
|
cancelled, // 4
|
|
completed, // 5
|
|
}
|
|
|
|
int enumToIntService(ServiceStatus state) {
|
|
return state.index;
|
|
}
|
|
|
|
ServiceStatus intToEnumService(int value) {
|
|
return ServiceStatus.values[value];
|
|
}
|