fromValue static method

UITouchType fromValue(
  1. int value
)

Implementation

static UITouchType fromValue(int value) => switch (value) {
  0 => UITouchTypeDirect,
  1 => UITouchTypeIndirect,
  2 => UITouchTypePencil,
  3 => UITouchTypeIndirectPointer,
  _ => throw ArgumentError('Unknown value for UITouchType: $value'),
};