fromValue static method
Implementation
static NSPointingDeviceType fromValue(int value) => switch (value) {
0 => NSPointingDeviceTypeUnknown,
1 => NSPointingDeviceTypePen,
2 => NSPointingDeviceTypeCursor,
3 => NSPointingDeviceTypeEraser,
_ => throw ArgumentError('Unknown value for NSPointingDeviceType: $value'),
};