copyWith method

Peer copyWith({
  1. Consumer? audio,
  2. Consumer? video,
  3. RTCVideoRenderer? renderer,
  4. PeerDevice? device,
  5. String? displayName,
  6. String? id,
})

Implementation

Peer copyWith({
  Consumer? audio,
  Consumer? video,
  RTCVideoRenderer? renderer,
  PeerDevice? device,
  String? displayName,
  String? id,
}) {
  return Peer(
    audio: audio ?? this.audio,
    video: video ?? this.video,
    renderer: renderer ?? this.renderer,
    displayName: displayName ?? this.displayName,
    // device: device ?? this.device,
    id: id ?? this.id,
  );
}