fromString static method

LightArchetype fromString(
  1. String value
)

Get a LightArchetype from a given string value.

Implementation

static LightArchetype fromString(String value) {
  return values.firstWhere(
    (archetype) => archetype.value == value,
    orElse: () => unknown,
  );
}