fromString static method

KeyStatus fromString(
  1. String text
)

Implementation

static KeyStatus fromString(String text) {
  return KeyStatus.values.firstWhere((element) => element._text == text);
}