EmailAddress class

Inheritance

Constructors

EmailAddress(String? str)
Returns a valid EmailAddress object.
factory
EmailAddress.fromJson(Map<String, dynamic> map, {String? key})
Returns a valid EmailAddress object.
factory
EmailAddress.fromValueObject(ValueObject vo)
Returns a valid EmailAddress object.
factory

Properties

domain String
Returns the domain part of this EmailAddress instance.
no setter
hashCode int
The hash code for this object.
no setterinherited
local String
Returns the local part of this EmailAddress instance.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({String? key}) Map<String, String>
toString() String
Returns the object's valid value as a String
inherited

Operators

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

Static Properties

customValidator ↔ ValidCallback?
Define your own customValidator if you are dissatisfied with _defaultValidator.
getter/setter pair
key String
Default value: email
getter/setter pair

Static Methods

validate(String str) bool
Validates str by _defaultValidator or customValidator.