operator % method

num operator %(
  1. Object other
)

Implementation

num operator %(Object other) {
  final rhs = _resolve(other);
  if (rhs == 0) throw UnsupportedError('Modulo by zero');
  return value % rhs;
}