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

accounts List<GWAccount>
no setter
getAuths Map<String, Map<String, dynamic>>
Gets the auths Map.
no setter

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 from auths) If auths doesn't contain the id, then address and password are required to load the account from api if then, the account isn't retrieved and elseNew 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 and domain If they're not set, they'll be randomized with a randomStringLength length.