isSameOrAfterDate function Null safety

bool isSameOrAfterDate(
  1. dynamic firstDate,
  2. dynamic date
)

Check the date after/same of first date

Implementation

bool isSameOrAfterDate(dynamic firstDate, dynamic date) {
  return isSameDate(firstDate, date) || firstDate.isBefore(date) == true;
}