add method

Date<T> add(
  1. int days
)

added a the number of days of the Duration to a new Date

Implementation

Date<T> add(int days) {
  if (days == 0) return copy();
  var hours = 0; //days > 0 ? 1 : -1;
  return adapter
      .fromDateTime(dateTime.add(Duration(days: days, hours: hours))) as Date<T>;
}