copyWith method
SettingsRow
copyWith({ - Value<String?> userId = const Value.absent(),
- Value<String?> locale = const Value.absent(),
- Value<bool?> showIntroduction = 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(),
})
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,
);