DateRange.lastMonth constructor

DateRange.lastMonth()

Creates a DateRange representing the previous month.

Implementation

factory DateRange.lastMonth() => DateRange(today.previousMonth.firstDayOfMonth, today.previousMonth.lastDayOfMonth.endOfDay);