addChecked method

U32 addChecked(
  1. U32 other
)

Implementation

U32 addChecked(U32 other) {
  var result = value + other.value;
  if (result > 4294967295) throw StateError('U32 addition overflow');
  return U32(result);
}