Discover class Null safety




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


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Methods

complete(MailAccount partialAccount, {bool isLogEnabled = false}) Future<bool>
Tries to complete the specified partialAccount information. This is useful when mail configuration settings cannot be discovered automatically and the user only provides some information such as the host domains of the incoming and outgoing servers. Warning: this method assumes that the host domain has been specified by the user and contains a corresponding assert statement.
discover(String emailAddress, {bool forceSslConnection = false, bool isLogEnabled = false}) Future<ClientConfig?>
Tries to discover mail configuration settings for the specified emailAddress. Optionally set forceSslConnection to true when unencrypted connections should not be allowed. Set isLogEnabled to true to output debugging information during the discovery process. You can use the discovered client settings directly or by converting them to a MailAccount first with calling MailAccount.fromDiscoveredSettings().