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;
}