fromValue static method

NSTouchType fromValue(
  1. int value
)

Implementation

static NSTouchType fromValue(int value) => switch (value) {
  0 => NSTouchTypeDirect,
  1 => NSTouchTypeIndirect,
  _ => throw ArgumentError('Unknown value for NSTouchType: $value'),
};