dayDifference method

int dayDifference(
  1. Date other
)

The number of whole days from this date to other.

Is negative if other is before this date.

Implementation

int dayDifference(Date other) => other._daysSinceEpoch - _daysSinceEpoch;