mulChecked method

U8 mulChecked(
  1. U8 other
)

Implementation

U8 mulChecked(U8 other) {
  var result = value * other.value;
  if (result > 255) throw StateError('U8 multiplication overflow');
  return U8(result);
}