fromValue static method

UIEventSubtype fromValue(
  1. int value
)

Implementation

static UIEventSubtype fromValue(int value) => switch (value) {
  0 => UIEventSubtypeNone,
  1 => UIEventSubtypeMotionShake,
  100 => UIEventSubtypeRemoteControlPlay,
  101 => UIEventSubtypeRemoteControlPause,
  102 => UIEventSubtypeRemoteControlStop,
  103 => UIEventSubtypeRemoteControlTogglePlayPause,
  104 => UIEventSubtypeRemoteControlNextTrack,
  105 => UIEventSubtypeRemoteControlPreviousTrack,
  106 => UIEventSubtypeRemoteControlBeginSeekingBackward,
  107 => UIEventSubtypeRemoteControlEndSeekingBackward,
  108 => UIEventSubtypeRemoteControlBeginSeekingForward,
  109 => UIEventSubtypeRemoteControlEndSeekingForward,
  _ => throw ArgumentError('Unknown value for UIEventSubtype: $value'),
};