isBeforeDay method

bool isBeforeDay(
  1. DateTime other
)

Whether this date is before other ignoring time.

Implementation

bool isBeforeDay(DateTime other) => startOfDay.isBefore(other.startOfDay);