operator & method

Score operator &(
  1. dynamic other
)

matches

Implementation

Score operator &(dynamic other) {
  if (other is int) return matches(other);
  if (other is Range) return matchesRange(other);
  if (other is Score) return isEqual(other);
  throw ('Please use either a Score, Range or an Int in the operator &');
}