difference method

Duration difference(
  1. Date other
)

Implementation

Duration difference(Date other) {
  DateTime dateTime = DateTime(year, month, day);
  return dateTime.difference(DateTime(other.year, other.month, other.day));
}