copy static method
Implementation
static PeersState copy(
PeersState old, {
Map<String, Peer>? peers,
Map<String, Peer>? shareScreenPeer,
}) {
return PeersState(
peers: peers ?? old.peers,
shareScreenPeer: shareScreenPeer ?? old.shareScreenPeer,
);
}