You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// ignore: constant_identifier_names
|
|
enum ItemStatus { Init, Progress, Done }
|
|
|
|
ItemStatus statusFromString(String? s) {
|
|
return ItemStatus.values.firstWhere(
|
|
(e) => e.name == (s ?? 'Init'),
|
|
orElse: () => ItemStatus.Init,
|
|
);
|
|
} |