operator * method

Decimal operator *(
  1. Decimal other
)

Multiplies exactly and checks the supported result range.

Implementation

Decimal operator *(Decimal other) => Decimal.fromBigInt(
  coefficient * other.coefficient,
  scale: scale + other.scale,
);