copyWith method

GroupCallParticipantVideoInfo copyWith({
  1. List<GroupCallVideoSourceGroup>? sourceGroups,
  2. String? endpointId,
  3. bool? isPaused,
})

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

Implementation

GroupCallParticipantVideoInfo copyWith({
  List<GroupCallVideoSourceGroup>? sourceGroups,
  String? endpointId,
  bool? isPaused,
}) =>
    GroupCallParticipantVideoInfo(
      sourceGroups: sourceGroups ?? this.sourceGroups,
      endpointId: endpointId ?? this.endpointId,
      isPaused: isPaused ?? this.isPaused,
    );