FromHeader class final
A class representing the HTTP From header.
The From header is used to indicate the email address of the user making the request.
It usually contains a single email address, but in edge cases, it could contain multiple
email addresses separated by commas.
Constructors
-
FromHeader.emails(Iterable<
String> emails) -
Private constructor for initializing the
emailslist. -
FromHeader.parse(Iterable<
String> values) -
Parses a
Fromheader value and returns a FromHeader instance.factory
Properties
-
emails
→ List<
String> -
A list of email addresses provided in the
Fromheader.final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- singleEmail → String?
-
Returns the single email address if the list only contains one email.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
codec
→ const HeaderCodec<
FromHeader>