isSameYear method

bool isSameYear(
  1. dynamic datetime
)

Implementation

bool isSameYear(datetime) => year == datetime.year;