hasYear property

bool get hasYear

Implementation

bool get hasYear => year != null;