operator < method

bool operator <(
  1. Year other
)

Less than operator

Implementation

bool operator <(Year other) => isBefore(other);