onConnectionError method

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

Is called when the connection encountered an error

Implementation

@override
void onConnectionError(dynamic error) {
  _eventController
    ..add(PopConnectionLostEvent(this))
    ..close();
}