of method
- DateTime date
override
Returns the period of the given date
considering the generator type.
Implementation
@override
MonthPeriod of(DateTime date) {
return MonthPeriod(
start: date.firstDayOfMonth.date,
end: date.lastDayOfMonth.endOfDay,
);
}