CupertinoCalendarDateRemindsView constructor
CupertinoCalendarDateRemindsView(
- DateTime currentDay, {
- required DateRemindList dateRemindList,
- DateRemindWidgetStyle dateRemindWidgetStyle = const DateRemindWidgetStyle(),
- SelectDateRemindHandler? onPress,
- SelectDateRemindHandler? onLongPress,
- String? locale,
Create a Widget for listing DateRemind
from dateRemindList
Throws AssertionError if found non-ongoing DateRemind
in dateRemindList
Implementation
CupertinoCalendarDateRemindsView(this.currentDay,
{required DateRemindList dateRemindList,
this.dateRemindWidgetStyle = const DateRemindWidgetStyle(),
this.onPress,
this.onLongPress,
this.locale})
: assert(dateRemindList.where((dr) => !dr.isOngoing(currentDay)).isEmpty,
"Ensure all date reminds are ongoing"),
_drl = []
..addAll(dateRemindList.holiday)
..addAll(dateRemindList.events);