checkSameDay function

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

Implementation

bool checkSameDay(DateTime? a, DateTime? b) {
  if (a == null || b == null) {
    return false;
  }
  return a.year == b.year && a.month == b.month && a.day == b.day;
}