operator < method

Score operator <(
  1. dynamic other
)

less than

Implementation

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