addChecked method
Throws StateError instead of wrapping on overflow.
Implementation
Uint64 addChecked(Uint64 other) {
final r = this + other;
if (r < this) throw IntegerError.overflow;
return r;
}
Throws StateError instead of wrapping on overflow.
Uint64 addChecked(Uint64 other) {
final r = this + other;
if (r < this) throw IntegerError.overflow;
return r;
}