MailServerConfig class

Configuration of a specific mail service like IMAP, POP3 or SMTP

Annotations
  • @JsonSerializable()

Constructors

MailServerConfig({required ServerConfig serverConfig, required MailAuthentication authentication, List<Capability> serverCapabilities = const [], String pathSeparator = '/'})
Creates a new mail server configuration
const
MailServerConfig.fromJson(Map<String, dynamic> json)
Creates a new MailServerConfig from the given json
factory

Properties

authentication MailAuthentication
The authentication like PlainAuthentication or OauthAuthentication
final
hashCode int
The hash code for this object.
no setteroverride
pathSeparator String
Path separator of the server, e.g. /
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverCapabilities List<Capability>
Capabilities of the server
final
serverConfig ServerConfig
The server configuration like host, port and socket type
final

Methods

copyWith({ServerConfig? serverConfig, MailAuthentication? authentication, String? pathSeparator, List<Capability>? serverCapabilities}) MailServerConfig
Copies this MailServerConfig with the given values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supports(String capabilityName) bool
Checks of the given capability is supported
toJson() Map<String, dynamic>
Converts this MailServerConfig to JSON
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override