fromValue static method

ShortcutScope fromValue(
  1. int value
)

Implementation

static ShortcutScope fromValue(int value) => switch (value) {
  0 => ShortcutScope.global,
  1 => ShortcutScope.application,
  _ => ShortcutScope.global,
};