isToday function

bool isToday(
  1. int y,
  2. int m,
  3. int d
)

Implementation

bool isToday(int y, int m, int d) {
  var n = DateTime.now();
  return (n.year == y && n.month == m && n.day == d);
}