# isAfter method

bool isAfter([

1. String? date

])

Check if the string is a date that's after the specified date

If `date` is not passed, it defaults to now.

## Implementation

    bool isAfter([String? date]) {
      DateTime referenceDate;
      if (date == null) {
        referenceDate = DateTime.now();
      } else if (date.isDate) {
        referenceDate = DateTime.parse(date);
      } else {
        return false;
      }

      final strDate = DateTime.tryParse(this);
      if (strDate == null) return false;

      return strDate.isAfter(referenceDate);
    }