isBeforeDate method

bool isBeforeDate(
  1. DateTime other
)

Checks if this is before the date of other, ignoring time.

Implementation

bool isBeforeDate(DateTime other) => dateOnly.isBefore(other.dateOnly);