of method
- DateTime date
override
Returns the period of the given date
considering the generator type.
Implementation
@override
MinutePeriod of(DateTime date) {
return MinutePeriod(
start: date.copyWith(
second: 0,
millisecond: 0,
microsecond: 0,
),
end: date.copyWith(
second: 59,
millisecond: 999,
microsecond: 999,
),
);
}