connect method Null safety

Future<void> connect()

Connects and authenticates with the specified incoming mail server.

Also compare disconnect.

Implementation

Future<void> connect() async {
  await _incomingMailClient.connect();
  _isConnected = true;
}