copyWith method

GetGroupCallStreamSegment copyWith({
  1. int? groupCallId,
  2. int? timeOffset,
  3. int? scale,
  4. int? channelId,
  5. GroupCallVideoQuality? videoQuality()?,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GetGroupCallStreamSegment copyWith({
  int? groupCallId,
  int? timeOffset,
  int? scale,
  int? channelId,
  GroupCallVideoQuality? Function()? videoQuality,
}) =>
    GetGroupCallStreamSegment(
      groupCallId: groupCallId ?? this.groupCallId,
      timeOffset: timeOffset ?? this.timeOffset,
      scale: scale ?? this.scale,
      channelId: channelId ?? this.channelId,
      videoQuality: videoQuality != null ? videoQuality() : this.videoQuality,
    );