operator % method

Score operator %(
  1. dynamic other
)

modulo by

Implementation

Score operator %(dynamic other) {
  if (other is int) {
    return modulo(
      Score.con(other),
    );
  }
  if (other is Score) return modulo(other);
  throw ('Please use either a Score or an Int in the operator %');
}