Calendar class
Represents a calendar with typed access to its components and properties.
- Inheritance
-
- Object
- CalendarComponent
- Calendar
- Available extensions
Constructors
-
Calendar({required Map<
String, List< properties, required List<PropertyValue> >CalendarComponent> components}) - Creates a new calendar with the given properties. Properties are expected to be immutable and contain required values.
Properties
- calscale → String
-
The calendar scale, defaults to 'GREGORIAN' if not specified.
no setter
-
components
→ List<
CalendarComponent> -
The nested components within this component.
finalinherited
-
events
→ List<
EventComponent> -
The list of event components in the calendar.
no setter
-
freeBusy
→ List<
FreeBusyComponent> -
The list of free/busy components in the calendar.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
journals
→ List<
JournalComponent> -
The list of journal components in the calendar.
no setter
- method → String?
-
The method associated with the calendar, if any.
no setter
- name → String
-
The name of the component, e.g., VCALENDAR, VEVENT, VTODO, etc.
finalinherited
- prodid → String
-
The product identifier for the calendar. This is a required property.
no setter
-
properties
→ Map<
String, List< PropertyValue> > -
The properties of the component, mapped by property name to a list of values.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
timezones
→ List<
TimeZoneComponent> -
The list of timezone components in the calendar.
no setter
-
todos
→ List<
TodoComponent> -
The list of todo components in the calendar.
no setter
- version → String
-
The version of the iCalendar specification used. This is a required property.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toIcsString(
{bool foldLines = true}) → String -
Available on CalendarComponent, provided by the CalendarComponentSerialization extension
Serializes this semantic component into iCalendar text. -
toString(
) → String -
A string representation of this object.
inherited
-
value<
T> (String name) → T -
Returns the first value for the given property name, or throws if not found.
inherited
-
valueOrNull<
T> (String name) → T? -
Returns the first value for the given property name, or null if not found.
inherited
-
values<
T> (String name) → List< T> -
Returns all values for the given property name, or an empty list if not found.
inherited
-
valuesUnion<
T> (String name) → List< T> -
Returns all values for the given property name, or an empty list if not found.
This flattens all values into a single list, useful for properties that can have
multiple values.
For example, CATEGORIES can have multiple values separated by commas.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited