operator - method

Score operator -(
  1. dynamic other
)

subtract

Implementation

Score operator -(dynamic other) {
  if (other is int) return subtract(other);
  if (other is Score) return subtractScore(other);
  throw ('Please use either a Score or an Int in the operator -');
}