fromValue static method
Implementation
static UIEventButtonMask fromValue(int value) => switch (value) {
1 => UIEventButtonMaskPrimary,
2 => UIEventButtonMaskSecondary,
_ => throw ArgumentError('Unknown value for UIEventButtonMask: $value'),
};