feat: enhance experience management by introducing ExperienceSkill and Industry enums, refactoring related components
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
enum ExperienceSkill {
|
||||
foodService('food_service'),
|
||||
bartending('bartending'),
|
||||
eventSetup('event_setup'),
|
||||
hospitality('hospitality'),
|
||||
warehouse('warehouse'),
|
||||
customerService('customer_service'),
|
||||
cleaning('cleaning'),
|
||||
security('security'),
|
||||
retail('retail'),
|
||||
cooking('cooking'),
|
||||
cashier('cashier'),
|
||||
server('server'),
|
||||
barista('barista'),
|
||||
hostHostess('host_hostess'),
|
||||
busser('busser'),
|
||||
driving('driving');
|
||||
|
||||
final String value;
|
||||
const ExperienceSkill(this.value);
|
||||
|
||||
static ExperienceSkill? fromString(String value) {
|
||||
try {
|
||||
return ExperienceSkill.values.firstWhere((e) => e.value == value);
|
||||
} catch (_) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
enum Industry {
|
||||
hospitality('hospitality'),
|
||||
foodService('food_service'),
|
||||
warehouse('warehouse'),
|
||||
events('events'),
|
||||
retail('retail'),
|
||||
healthcare('healthcare'),
|
||||
other('other');
|
||||
|
||||
final String value;
|
||||
const Industry(this.value);
|
||||
|
||||
static Industry? fromString(String value) {
|
||||
try {
|
||||
return Industry.values.firstWhere((e) => e.value == value);
|
||||
} catch (_) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user