MailGw class
MailGw client (constant)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
loadAuths(
Map< String, dynamic> _auths) → void -
login(
{String? id, String? address, String? password, bool elseNew = true}) → FutureOr< GWAccount> -
Gets the account with the given
id
(Retrieved fromauths
) Ifauths
doesn't contain the id, thenaddress
andpassword
are required to load the account from api if then, the account isn't retrieved andelseNew
is true a new account is created or else, an exception is thrown. -
register(
{String? username, String? password, GWDomain? domain, int randomStringLength = 10}) → Future< GWAccount> -
Creates an account with the given
username
,password
anddomain
If they're not set, they'll be randomized with arandomStringLength
length.