operator > method

Score operator >(
  1. dynamic other
)

greater than

Implementation

Score operator >(dynamic other) {
  if (other is int) {
    return matchesRange(
      Range.from(other + 1),
    );
  }
  if (other is Score) return isBigger(other);
  throw ('Please use either a Score or an Int in the operator >');
}