operator > method

bool operator >(
  1. Year other
)

Implementation

bool operator >(Year other) => (this.value - other.value) > 0;