operator % method

Int32 operator %(
  1. Int32 other
)

Truncating remainder (same sign as the dividend), consistent with operator ~/ above — this is remainder() semantics, not Dart's Euclidean %.

Implementation

Int32 operator %(Int32 other) => this - (this ~/ other) * other;