operator * method

  1. @override
Number operator *(
  1. dynamic multiplicand
)
override

Returns the product of this Number and the multiplicand (a Number or num). This Number is unaffected.

Implementation

@override
Number operator *(dynamic multiplicand) {
  if (multiplicand is int) return Integer(multiplicand * value);
  if (multiplicand is Integer) return Integer(multiplicand.value * value);
  return super * multiplicand;
}