isBeforeThanToday static method

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

Implementation

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