DateRange.daysBefore constructor
Creates a DateRange representing the specified number of days before the specified date.
date
The date to calculate the range from.days
The number of days before the specified date.
Implementation
factory DateRange.daysBefore(date date, int days) => DateRange(date.subtract(days.days), date.endOfDay);