onConnectionError method

  1. @override
void onConnectionError(
  1. dynamic error
)

Is called when the connection encountered an error

Implementation

@override
void onConnectionError(dynamic error) {
  logApp('onConnectionError: $error');
  _isInIdleMode = false;
  _selectedMailbox = null;
  eventBus.fire(ImapConnectionLostEvent(this));
}