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