MailTm class
An helper class that will handle every mailtm API request.
Prefer using this over raw requests using MailTmService, which is completely unadvertised.
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 Methods
-
addUser(
String id, AuthenticatedUser? user) → void - Adds an user to the authenticated users map
-
domains(
) → FutureOr< List< Domain> > - Caches and gets every domain that the API provides
-
dumpUsers(
) → Map< String, AuthenticatedUser> - Dumps cached users.
-
getUser(
String id) → AuthenticatedUser? - Gets a cached user.
-
loadUsers(
Map< String, Map< users) → voidString, Object?> > - Loads cached users.
-
login(
{String? id, String? address, String? password}) → Future< AuthenticatedUser?> -
Logins to an account using either
id
oraddress
andpassword
-
register(
{String? username, String? password, Domain? domain, int randomCharsLength = 16}) → Future< AuthenticatedUser> -
Registers an account using a certain
username
,domain
andpassword
.