daysUntil method

int daysUntil(
  1. DateTime other
)

Returns the number of days until other (negative if other is past).

Implementation

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