equalsWithToday function

bool equalsWithToday(
  1. DateTime srcDate,
  2. String day
)

Implementation

bool equalsWithToday(DateTime srcDate, String day) {
  var today = DateFormat('yyyy/MM/dd').format(DateTime.now());
  var messageDate = DateFormat('yyyy/MM/dd').format(srcDate);
  return messageDate == today;
}