fromValue static method

UITouchProperties fromValue(
  1. int value
)

Implementation

static UITouchProperties fromValue(int value) => switch (value) {
  1 => UITouchPropertyForce,
  2 => UITouchPropertyAzimuth,
  4 => UITouchPropertyAltitude,
  8 => UITouchPropertyLocation,
  _ => throw ArgumentError('Unknown value for UITouchProperties: $value'),
};