Event class
Event property (e.g., birthdays, anniversaries).
iOS limits birthdays to one per contact; Android allows multiple events of any type.
Constructors
-
Event({int? year, required int month, required int day, Label<
EventLabel> ? label, PropertyMetadata? metadata}) -
const
Properties
- day → int
-
Day (1-31).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
label
→ Label<
EventLabel> -
Event label type.
final
- metadata → PropertyMetadata?
-
Property identity metadata (used internally for updates).
final
- month → int
-
Month (1-12).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- year → int?
-
Year. Null means the event recurs annually without a specific year.
final
Methods
-
copyWith(
{int? year, int? month, int? day, Label< EventLabel> ? label, PropertyMetadata? metadata}) → Event -
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