operator % method

  1. @override
Decimal operator %(
  1. DynamicNumber other
)
override

Euclidean modulo operator.

Implementation

@override
Decimal operator %(DynamicNumber<dynamic> other) {
  if (other is DynamicInt) {
    return moduloDynamicInt(other);
  }

  return _moduloDecimal(other.toDecimal());
}