CalDavClient class

Inheritance

Constructors

CalDavClient({required String baseUrl, Duration? connectionTimeout, Map<String, dynamic>? headers})

Properties

baseUrl String
finalinherited
client HttpClient
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCal(String path, dynamic calendar, {Map<String, dynamic>? headers}) Future<CalResponse>
Create calendar
inherited
deleteCal(String path, String etag, {Map<String, dynamic>? headers}) Future<CalResponse>
Delete calendar
inherited
downloadIcs(String path, String savePath, {Map<String, dynamic>? headers}) Future<CalResponse>
Fetch the contents for the object
inherited
getChanges(String path, {int? depth}) Future<CalResponse>
Request the ctag again on the calendar. If the ctag did not change, you still have the latest copy. If it did change, you must request all the etags in the entire calendar again.
getObjects(String path, {int? depth}) Future<CalResponse>
This request will give us every object that's a VCALENDAR object, and its etag.
getObjectsInTimeRange(String path, DateTime start, DateTime end, {int? depth}) Future<CalResponse>
This request will give us every object that's a VCALENDAR object, and its etag in a given time range.
initialSync(String path, {int? depth, bool syncToken = true}) Future<CalResponse>
Get the display name and the ctag. This ctag works like a change id. Every time the ctag has changed, you know something in the calendar has changed too.
multiget(String path, List<String> files, {int? depth}) Future<CalResponse>
calendar-multiget REPORT is used to retrieve specific calendar object resources from within a collection, if the Request- URI is a collection, or to retrieve a specific calendar object resource, if the Request-URI is a calendar object resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
propfind(String path, dynamic body, {int? depth, Map<String, dynamic>? headers}) Future<CalResponse>
Allows the client to fetch properties from a url.
inherited
report(String path, dynamic body, {int? depth, Map<String, dynamic>? headers}) Future<CalResponse>
REPORT performs a search for all calendar object resources that match a specified filter. The response of this report will contain all the WebDAV properties and calendar object resource data specified in the request.
inherited
toString() String
A string representation of this object.
inherited
updateCal(String path, String etag, dynamic calendar, {Map<String, dynamic>? headers}) Future<CalResponse>
Update calendar ifMatch the etag
inherited

Operators

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