operator > method

bool operator >(
  1. Year other
)

Greater than operator

Implementation

bool operator >(Year other) => isAfter(other);