operator % method

Int64 operator %(
  1. Int64 other
)

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

Implementation

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