DateRange.daysAfter constructor

DateRange.daysAfter(
  1. date date,
  2. int days
)

Creates a DateRange representing the specified number of days after the specified date.

  • date The date to calculate the range from.
  • days The number of days after the specified date.

Implementation

factory DateRange.daysAfter(date date, int days) => DateRange(date, date.add(days.days).endOfDay);