isToday static method

dynamic isToday(
  1. int currentYear,
  2. int currentMonth,
  3. int currentDay
)

Implementation

static isToday(int currentYear, int currentMonth, int currentDay) {
  CalendarDateTime now = TimelineCalendar.calendarProvider.getDateTime();
  DateTime currentDateTime = DateTime(currentYear, currentMonth, currentDay);
  return currentDateTime.isAtSameMomentAs(now.toDateTime());
}