CalendarEventData<T extends Object?> class

Annotations

Constructors

CalendarEventData({required String title, required DateTime date, String? description, T? event, Color color = Colors.blue, DateTime? startTime, DateTime? endTime, TextStyle? titleStyle, TextStyle? descriptionStyle, DateTime? endDate})

Properties

color → Color
Defines color of event. This color will be used in default widgets provided by plugin.
final
date → DateTime
Specifies date on which all these events are.
final
description → String?
Description of the event.
final
descriptionStyle → TextStyle?
Define style of description.
final
endDate → DateTime
no setter
endTime → DateTime?
Defines the end time of the event. endTime and startTime defines time on same day. This is required when you are using CalendarEventData for DayView
final
event → T?
Event on date.
final
hashCode → int
The hash code for this object.
no setteroverride
isFullDayEvent → bool
Returns if the events is full day event or not.
no setter
isRangingEvent → bool
If this flag returns true that means event is occurring on multiple days and is not a full day event.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTime → DateTime?
Defines the start time of the event. endTime and startTime will defines time on same day. This is required when you are using CalendarEventData for DayView
final
title → String
Title of the event.
final
titleStyle → TextStyle?
Define style of title.
final

Methods

copyWith({String? title, String? description, T? event, Color? color, DateTime? startTime, DateTime? endTime, TextStyle? titleStyle, TextStyle? descriptionStyle, DateTime? endDate, DateTime? date}) → CalendarEventData<T>
Returns new object of CalendarEventData with the updated values defined as the arguments.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
occursOnDate(DateTime currentDate) → bool
Returns a boolean that defines whether current event is occurring on currentDate or not.
toJson() → Map<String, dynamic>
Returns event data in Map<String, dynamic> format.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override