daysUntil method

int daysUntil(
  1. DateTime other
)

Returns the whole day difference from this date to other.

Implementation

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