mulChecked method

Uint128 mulChecked(
  1. Uint128 other
)

Implementation

Uint128 mulChecked(Uint128 other) {
  if (isZero || other.isZero) return Uint128.zero;
  final r = this * other;
  if (r ~/ other != this) throw IntegerError.overflow;
  return r;
}