onConnectionError method

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

Is called when the connection encountered an error

Implementation

@override
void onConnectionError(dynamic error) {
  eventBus.fire(SmtpConnectionLostEvent(this));
}