operator > method

bool operator >(
  1. Year other
)

Checks if this year is strictly after another year.

Implementation

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