operator <= method

bool operator <=(
  1. Year other
)

Checks if this year is before or the same as another year.

Implementation

bool operator <=(Year other) => value <= other.value;