daysUntil method

int daysUntil(
  1. DateTime other
)

Whole days between this date and other (other - this).

Implementation

int daysUntil(DateTime other) =>
    other.startOfDay.difference(startOfDay).inDays;