isSameDate method

bool isSameDate(
  1. DateTime other
)

Implementation

bool isSameDate(DateTime other) {
  final otherUtc = other.toUtc();
  return toUtc().year == otherUtc.year &&
      toUtc().month == otherUtc.month &&
      toUtc().day == otherUtc.day;
}