checkout form
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
enum OrderType {
|
||||
dineIn('DINE IN'),
|
||||
takeAway('TAKE AWAY'),
|
||||
delivery('DELIVERY'),
|
||||
freeTable('FREE TABLE');
|
||||
|
||||
final String value;
|
||||
const OrderType(this.value);
|
||||
|
||||
static OrderType fromString(String value) {
|
||||
return OrderType.values.firstWhere(
|
||||
(type) => type.value == value,
|
||||
orElse: () => OrderType.dineIn,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user