onReceiveError method Null safety

void onReceiveError(
  1. Object error
)

Implementation

void onReceiveError(Object error) {
  logger.e('Websocket Error:' + error.toString());
  _functionError(error);
}