isThisYear property

bool get isThisYear

判断是否是今年

Implementation

bool get isThisYear {
  return year == DateTime.now().year;
}