copy static method

ProducersState copy(
  1. ProducersState old, {
  2. Producer? mic,
  3. Producer? webcam,
  4. Producer? screen,
})

Implementation

static ProducersState copy(
  ProducersState old, {
  Producer? mic,
  Producer? webcam,
  Producer? screen,
}) {
  return ProducersState(
    mic: mic ?? old.mic,
    webcam: webcam ?? old.webcam,
    screen: screen ?? old.screen,
  );
}