of method

  1. @override
MonthPeriod of(
  1. 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,
  );
}