operator <= method

Score operator <=(
  1. dynamic other
)

less or equal

Implementation

Score operator <=(dynamic other) {
  if (other is int) {
    return matchesRange(
      Range.to(other),
    );
  }
  if (other is Score) return isSmallerOrEqual(other);
  throw ('Please use either a Score or an Int in the operator <=');
}