CalendarSource class
Represents a calendar source/account that can own calendars.
Use DeviceCalendar.listSources to discover available sources, then pass a source's id to CreateCalendarOptionsIos or use accountName + accountType with CreateCalendarOptionsAndroid to create calendars under a specific account.
Constructors
- CalendarSource({required String id, required String accountName, required String accountType, required CalendarSourceType type, required bool supportsCalendarCreation})
-
const
-
CalendarSource.fromMap(Map<
String, dynamic> map) -
factory
Properties
- accountName → String
-
Display name or account identifier (e.g. "iCloud", "user@gmail.com").
Matches Calendar.accountName.
final
- accountType → String
-
Raw platform type string (e.g. "caldav" on iOS, "com.google" on Android).
Matches Calendar.accountType.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Stable identifier for this source.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsCalendarCreation → bool
-
Whether this source supports calendar creation from this app.
final
- type → CalendarSourceType
-
Normalized source type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override