mulChecked method
- Int16 other
Evaluates exact strict mathematical bounding conditions without truncating natively.
Implementation
Int16 mulChecked(Int16 other) {
final result = value * other.value;
if (result > 32767 || result < -32768) throw StateError('Int16 multiplication overflow');
return Int16.from(result);
}