Event class Null safety

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.
read / write
day int
Event day (1-31).
read / write
hashCode int
The hash code for this object.
read-onlyoverride
label EventLabel
Label (default EventLabel.birthday).
read / write
month int
Event month (1-12).
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
year int?
Event year (can be null).
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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