daysUntil method

int daysUntil(
  1. DateTime other
)

Gets the number of days until other date

Implementation

int daysUntil(DateTime other) {
  return other.difference(this).inDays;
}