Error constructor

Error({
  1. Error? error,
  2. WebsocketReconnectStrategy? reconnectStrategy,
})

Implementation

factory Error({
  $0.Error? error,
  $0.WebsocketReconnectStrategy? reconnectStrategy,
}) {
  final _result = create();
  if (error != null) {
    _result.error = error;
  }
  if (reconnectStrategy != null) {
    _result.reconnectStrategy = reconnectStrategy;
  }
  return _result;
}