differenceInDays method

int differenceInDays(
  1. DateTime other
)

Implementation

int differenceInDays(DateTime other) {
  return dateOnly.difference(other.dateOnly).inDays.abs();
}