doMod static method

int doMod(
  1. dynamic a,
  2. dynamic b
)

Implementation

static int doMod(a, b) {
  var result = a.abs() % b.abs();
  if (a < 0) {
    result = -result;
  }
  return result;
}