VooCalendarEvent class
Calendar event
Constructors
-
VooCalendarEvent({required String id, required String title, String? description, required DateTime startTime, required DateTime endTime, Color? color, Color? accentColor, IconData? icon, String? trailingText, String? subtitle, bool isAllDay = false, Map<
String, dynamic> ? metadata, Widget? child}) -
const
-
VooCalendarEvent.custom({required String id, required DateTime startTime, required DateTime endTime, required Widget? child, Color? color, Color? accentColor, Map<
String, dynamic> ? metadata}) -
Creates a minimal calendar event for use with custom event builders.
This constructor is useful when using
eventBuilderoreventBuilderWithInfowhere you provide your own child widget for rendering.const
Properties
- accentColor → Color?
-
Accent color for the left border indicator
final
- child → Widget?
-
final
- color → Color?
-
final
- description → String?
-
final
- duration → Duration
-
no setter
- endTime → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- id → String
-
final
- isAllDay → bool
-
final
-
metadata
→ Map<
String, dynamic> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
final
- subtitle → String?
-
Subtitle displayed below the title (e.g., "5K Easy Pace · Zone 2")
final
- title → String
-
final
- trailingText → String?
-
Trailing text displayed on the right (e.g., "320 cal")
final
Methods
-
isOnDate(
DateTime date) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited