SpatioEvent class

Constructors

SpatioEvent({required String id, required String title, String? description, required DateTime startTime, required DateTime endTime, required bool allDay, String? location, Map<String, String> locationDetails = const {}, String? organizer, List<Attendee> attendees = const [], String? recurrenceRule, String? recurrenceId, DateTime? originalStart, required String status, required String visibility, required bool busy, List<Reminder> reminders = const [], int? travelTimeMinutes, List<String> categories = const [], String? color, String? userId, required String accountId, String? provider, required String providerId, Map<String, Object> providerData = const {}, required DateTime createdAt, required DateTime updatedAt, DateTime? deletedAt, DateTime? syncedAt, ConferenceData? conferenceData, List<Attachment> attachments = const [], String? url, String? etag, int? sequence, Map<String, String> customData = const {}})
Returns a new SpatioEvent instance.

Properties

accountId ↔ String
getter/setter pair
allDay ↔ bool
getter/setter pair
attachments ↔ List<Attachment>
getter/setter pair
attendees ↔ List<Attendee>
getter/setter pair
busy ↔ bool
Whether this event marks the time as busy or free.
getter/setter pair
categories ↔ List<String>
getter/setter pair
color ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
conferenceData ↔ ConferenceData?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
createdAt ↔ DateTime
getter/setter pair
customData ↔ Map<String, String>
getter/setter pair
deletedAt ↔ DateTime?
getter/setter pair
description ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
endTime ↔ DateTime
getter/setter pair
etag ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String
getter/setter pair
location ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
locationDetails ↔ Map<String, String>
Free-form key/value (lat, lng, room, etc.).
getter/setter pair
organizer ↔ String?
Organizer email.
getter/setter pair
originalStart ↔ DateTime?
Original start of a moved recurring instance.
getter/setter pair
provider ↔ String?
Standardized provider id (e.g. google-calendar, native-calendar). Mirrors provider_id — both are populated on writes; clients should prefer provider.
getter/setter pair
providerData ↔ Map<String, Object>
Provider-specific extras.
getter/setter pair
providerId ↔ String
Legacy alias of provider.
getter/setter pair
recurrenceId ↔ String?
Set on instances of a recurring series.
getter/setter pair
recurrenceRule ↔ String?
RFC 5545 RRULE.
getter/setter pair
reminders ↔ List<Reminder>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequence ↔ int?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
startTime ↔ DateTime
getter/setter pair
status ↔ String
Provider-mapped event status. Free-form string — common values are confirmed, tentative, cancelled, needs_action, and the empty string when the provider doesn't populate it. Not enumerated strictly because providers add custom values and the platform passes them through verbatim.
getter/setter pair
syncedAt ↔ DateTime?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
title ↔ String
getter/setter pair
travelTimeMinutes ↔ int?
Apple Calendar's local-only travel buffer. Stored on the cached row but not synced to providers that don't model it.
getter/setter pair
updatedAt ↔ DateTime
getter/setter pair
url ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
userId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
visibility ↔ String
Free-form visibility string. Common values: public, private, confidential, plus empty when unset.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → SpatioEvent?
Returns a new SpatioEvent instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SpatioEvent>
mapFromJson(dynamic json) → Map<String, SpatioEvent>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SpatioEvent>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.