CalendarEvent class

Represents a calendar event with cross-platform and platform-specific settings.

Constructors

CalendarEvent.new({required String title, required DateTime startDate, String? description, DateTime? endDate, dynamic location, bool isAllDay = false, String? timeZone, String? url, AndroidEventSettings? androidSettings, IosEventSettings? iosSettings})
const

Properties

androidSettings AndroidEventSettings?
Android-specific settings
final
description String?
The description/notes of the event
final
endDate DateTime?
The end date and time of the event
final
hashCode int
The hash code for this object.
no setterinherited
iosSettings IosEventSettings?
iOS-specific settings
final
isAllDay bool
Whether this is an all-day event
final
location → dynamic
The location of the event (can be string or EventLocation)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate DateTime
The start date and time of the event
final
timeZone String?
The timezone identifier (e.g., "America/New_York")
final
title String
The title of the event
final
url String?
URL associated with the event
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the event to a map for platform channel communication
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited