remainder method

  1. @override
Int32 remainder(
  1. Object other
)
override

Returns the remainder of the truncating division of this integer by other.

Implementation

@override
Int32 remainder(Object other) {
  if (other is Int64) {
    var t = toInt64();
    return (t - (t ~/ other) * other).toInt32();
  }
  return this - (this ~/ other) * other as Int32;
}