Email class

An email address.

Once created, no properties of an Email object may be changed.

Annotations
  • @immutable

Constructors

Email({required String email, String? label})
Constructs an Email instance.
const
Email.fromJson(String json)
Constructs an Email instance from a json string.
factory
Email.fromMap(Map<String, dynamic> map)
Constructs an Email instance from a map.

Properties

email String
The email.
final
hashCode int
The hash code for this object.
no setteroverride
label String?
The label.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? email, String? label}) Email
Creates a copy of this Email instance but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Creates a JSON string representing this Email instance.
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> representing this Email instance.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Email other) bool
The equality operator.
override