fromValue static method

UIEventType fromValue(
  1. int value
)

Implementation

static UIEventType fromValue(int value) => switch (value) {
  0 => UIEventTypeTouches,
  1 => UIEventTypeMotion,
  2 => UIEventTypeRemoteControl,
  3 => UIEventTypePresses,
  10 => UIEventTypeScroll,
  11 => UIEventTypeHover,
  14 => UIEventTypeTransform,
  _ => throw ArgumentError('Unknown value for UIEventType: $value'),
};