of method

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