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