parse static method

KeyCode parse(
  1. String string
)

Implementation

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