fromValue static method

UIMenuOptions fromValue(
  1. int value
)

Implementation

static UIMenuOptions fromValue(int value) => switch (value) {
  1 => UIMenuOptionsDisplayInline,
  2 => UIMenuOptionsDestructive,
  32 => UIMenuOptionsSingleSelection,
  _ => throw ArgumentError('Unknown value for UIMenuOptions: $value'),
};