parse static method

KeyModifier parse(
  1. String string
)

Implementation

static KeyModifier parse(String string) {
  return KeyModifier.values.firstWhere((e) => describeEnum(e) == string);
}