addChecked method
- I8 other
Adds another I8 to this, throwing a StateError on overflow or underflow.
Implementation
I8 addChecked(I8 other) {
var result = value + other.value;
if (result > 127 || result < -128) {
throw StateError('I8 addition overflow');
}
return I8(result);
}