NativeCalendar class
Main API class for the native_calendar plugin.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
addEventToCalendar(
CalendarEvent event) → Future< bool> - Adds an event directly to the calendar without user interaction.
-
getPlatformVersion(
) → Future< String?> - Gets the platform version (for testing purposes).
-
hasCalendarPermissions(
) → Future< bool> - Checks if the app has calendar permissions.
-
openCalendarWithEvent(
CalendarEvent event) → Future< bool> - Opens the native calendar app with pre-filled event details.
-
requestCalendarPermissions(
) → Future< bool> - Requests calendar permissions from the user.