fromName static method

KeyAction fromName({
  1. required String name,
})

Implementation

static KeyAction fromName({required String name}) {
  for (var value in values) {
    if (value.toShortString() == name) {
      return value;
    }
  }
  return KeyAction.unknown;
}