isBefore method

bool isBefore([
  1. String? reference
])

Whether this date is before reference.

When reference is omitted, compares against the current date/time (now).

Implementation

bool isBefore([String? reference]) => dates.isBefore(this, reference);