copyWith method

SettingsRow copyWith({
  1. Value<String?> userId = const Value.absent(),
  2. Value<bool?> enablePopups = const Value.absent(),
  3. Value<String?> locale = const Value.absent(),
  4. Value<bool?> showIntroduction = const Value.absent(),
  5. Value<double?> sideBarWidth = const Value.absent(),
  6. String? callButtons,
  7. String? pinnedActions,
  8. Value<String?> callButtonsPosition = const Value.absent(),
  9. Value<bool?> workWithUsTabEnabled = const Value.absent(),
  10. Value<String?> videoDevice = const Value.absent(),
  11. Value<String?> audioDevice = const Value.absent(),
  12. Value<String?> outputDevice = const Value.absent(),
  13. Value<String?> screenDevice = const Value.absent(),
  14. Value<String?> muteKeys = const Value.absent(),
})

Implementation

SettingsRow copyWith({
  Value<String?> userId = const Value.absent(),
  Value<bool?> enablePopups = const Value.absent(),
  Value<String?> locale = const Value.absent(),
  Value<bool?> showIntroduction = const Value.absent(),
  Value<double?> sideBarWidth = const Value.absent(),
  String? callButtons,
  String? pinnedActions,
  Value<String?> callButtonsPosition = const Value.absent(),
  Value<bool?> workWithUsTabEnabled = const Value.absent(),
  Value<String?> videoDevice = const Value.absent(),
  Value<String?> audioDevice = const Value.absent(),
  Value<String?> outputDevice = const Value.absent(),
  Value<String?> screenDevice = const Value.absent(),
  Value<String?> muteKeys = const Value.absent(),
}) => SettingsRow(
  userId: userId.present ? userId.value : this.userId,
  enablePopups: enablePopups.present ? enablePopups.value : this.enablePopups,
  locale: locale.present ? locale.value : this.locale,
  showIntroduction: showIntroduction.present
      ? showIntroduction.value
      : this.showIntroduction,
  sideBarWidth: sideBarWidth.present ? sideBarWidth.value : this.sideBarWidth,
  callButtons: callButtons ?? this.callButtons,
  pinnedActions: pinnedActions ?? this.pinnedActions,
  callButtonsPosition: callButtonsPosition.present
      ? callButtonsPosition.value
      : this.callButtonsPosition,
  workWithUsTabEnabled: workWithUsTabEnabled.present
      ? workWithUsTabEnabled.value
      : this.workWithUsTabEnabled,
  videoDevice: videoDevice.present ? videoDevice.value : this.videoDevice,
  audioDevice: audioDevice.present ? audioDevice.value : this.audioDevice,
  outputDevice: outputDevice.present ? outputDevice.value : this.outputDevice,
  screenDevice: screenDevice.present ? screenDevice.value : this.screenDevice,
  muteKeys: muteKeys.present ? muteKeys.value : this.muteKeys,
);