daysUntil method

int daysUntil(
  1. DateTime other
)

Days until other. If other is in the past, the result will be negative.

Implementation

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