Event class

Labeled event / birthday.

Android allows multiple birthdays per contact, while iOS supports only one.

Constructors

Event({int? year, required int month, required int day, EventLabel label = EventLabel.birthday, String customLabel = ''})
Event.fromJson(Map<String, dynamic> json)
factory

Properties

customLabel String
Custom label, if label is EventLabel.custom.
getter/setter pair
day int
Event day (1-31).
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
label EventLabel
Label (default EventLabel.birthday).
getter/setter pair
month int
Event month (1-12).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int?
Event year (can be null).
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
toVCard() List<String>

Operators

operator ==(Object o) bool
The equality operator.
override