isNowOrAfterCurrentDate static method

bool isNowOrAfterCurrentDate(
  1. String? strDate
)

Implementation

static bool isNowOrAfterCurrentDate(String? strDate) {
  if (strDate != null && strDate.isNotEmpty) {
    var date = DateTime.parse(strDate).toLocal();
    var now = dateNotTime(DateTime.now());
    return date == now || date.isAfter(now);
  }
  return false;
}