ReconnectDetails constructor

ReconnectDetails({
  1. WebsocketReconnectStrategy? strategy,
  2. Iterable<TrackInfo>? announcedTracks,
  3. Iterable<TrackSubscriptionDetails>? subscriptions,
  4. int? reconnectAttempt,
  5. String? fromSfuId,
  6. String? previousSessionId,
})

Implementation

factory ReconnectDetails({
  $0.WebsocketReconnectStrategy? strategy,
  $core.Iterable<$0.TrackInfo>? announcedTracks,
  $core.Iterable<$1.TrackSubscriptionDetails>? subscriptions,
  $core.int? reconnectAttempt,
  $core.String? fromSfuId,
  $core.String? previousSessionId,
}) {
  final $result = create();
  if (strategy != null) {
    $result.strategy = strategy;
  }
  if (announcedTracks != null) {
    $result.announcedTracks.addAll(announcedTracks);
  }
  if (subscriptions != null) {
    $result.subscriptions.addAll(subscriptions);
  }
  if (reconnectAttempt != null) {
    $result.reconnectAttempt = reconnectAttempt;
  }
  if (fromSfuId != null) {
    $result.fromSfuId = fromSfuId;
  }
  if (previousSessionId != null) {
    $result.previousSessionId = previousSessionId;
  }
  return $result;
}