connect method
Connects and authenticates with the specified incoming mail server.
Also compare disconnect.
Specify a timeout
for the connection, defaults to 20 seconds.
Implementation
Future<void> connect({Duration timeout = const Duration(seconds: 20)}) async {
await _prepareConnect();
await _incomingMailClient.connect(timeout: timeout);
_isConnected = true;
}