AllDayEvents constructor

AllDayEvents({
  1. required String name,
  2. required DateTime from,
  3. required DateTime to,
  4. String? description,
})

Create all day events

from and to's time will be overwritten 00:00:00 and 23:59:59

Implementation

AllDayEvents(
    {required String name,
    required DateTime from,
    required DateTime to,
    String? description})
    : super(
          name: name,
          from: DateTime(from.year, from.month, from.day, 0, 0, 0),
          to: DateTime(to.year, to.month, to.day, 23, 59, 59),
          description: description);