Email class

An email address

Annotations

Constructors

Email(String address, {EmailLabel label: EmailLabel.home, String customLabel: "", bool isPrimary: false})
Email.fromJson(Map<String, dynamic> json)
factory

Properties

address String
Email address.
@JsonKey(required: true), read / write
customLabel String
If customLabel is EmailLabel.custom, free-form user-chosen label.
@JsonKey(defaultValue: ""), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isPrimary bool
Android has a notion of primary email, so that "send an email to X" means sending an email to X's primary email, in case there are multiple. Android only.
@JsonKey(defaultValue: false), read / write
label EmailLabel
The label or type of email it is. If custom, the free-form label can be found in customLabel. [...]
@JsonKey(defaultValue: EmailLabel.home), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of this object.
inherited

Operators

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