ReconnectDetails constructor
ReconnectDetails({
- WebsocketReconnectStrategy? strategy,
- Iterable<
TrackInfo> ? announcedTracks, - Iterable<
TrackSubscriptionDetails> ? subscriptions, - int? reconnectAttempt,
- String? fromSfuId,
- 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;
}