copy static method

MeState copy(
  1. MeState old, {
  2. String? displayName,
  3. String? id,
  4. bool? shareInProgress,
  5. bool? webcamInProgress,
  6. bool? presenterMode,
  7. List<String>? presenterConsumerId,
})

Implementation

static MeState copy(
  MeState old, {
  String? displayName,
  String? id,
  bool? shareInProgress,
  bool? webcamInProgress,
  bool? presenterMode,
  List<String>? presenterConsumerId,
}) {
  return MeState(
    displayName: displayName ?? old.displayName,
    id: id ?? old.id,
    shareInProgress:
        shareInProgress != null ? shareInProgress : old.shareInProgress,
    webcamInProgress:
        webcamInProgress != null ? webcamInProgress : old.webcamInProgress,
    presenterConsumerIds: presenterConsumerId ?? old.presenterConsumerIds,
  );
}