AllDayEvents constructor
AllDayEvents({})
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);