operator * method

  1. @override
Number operator *(
  1. Number other
)
override

Multiplication operator.

Implementation

@override
Number operator *(Number other) => (other is Decimal)
    ? Decimal.fromInt(value) * other
    : Integer(value * (other as Integer).value);