daysSince method

int daysSince(
  1. DateTime other
)

Gets the number of days since other date

Implementation

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