fromString static method
Get a LightArchetype from a given string value
.
Implementation
static LightArchetype fromString(String value) {
return values.firstWhere(
(archetype) => archetype.value == value,
orElse: () => unknown,
);
}
Get a LightArchetype from a given string value
.
static LightArchetype fromString(String value) {
return values.firstWhere(
(archetype) => archetype.value == value,
orElse: () => unknown,
);
}