daysBetween method

int daysBetween(
  1. DateTime other
)

Returns the number of days between this date and other.

Implementation

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