isSameDay method

bool isSameDay(
  1. DateTime? a,
  2. DateTime? b
)

Implementation

bool isSameDay(DateTime? a, DateTime? b) {
  if (a == null || b == null) {
    return false;
  }

  return a.year == b.year && a.month == b.month && a.day == b.day;
}