MailTm class Null safety
MailTm client (constant)
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- 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
-
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< TMAccount> -
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, Domain? domain, int randomStringLength = 10}) → Future< TMAccount> -
Creates an account with the given
username
,password
anddomain
If they're not set, they'll be randomized.