yearIsEqual static method

bool yearIsEqual(
  1. DateTime dateTime,
  2. DateTime locDateTime
)

year is equal.

Implementation

static bool yearIsEqual(DateTime dateTime, DateTime locDateTime) {
  return dateTime.year == locDateTime.year;
}