isAtSameCurrentDate static method

bool isAtSameCurrentDate(
  1. DateTime? otherDate
)

Implementation

static bool isAtSameCurrentDate(DateTime? otherDate) {
  if (otherDate == null) return false;

  var date = dateNotTime(otherDate.toLocal());
  var now = dateNotTime(DateTime.now().toLocal());
  return date.isAtSameMomentAs(now);
}