toCompanion method
Implementation
SettingsCompanion toCompanion(bool nullToAbsent) {
return SettingsCompanion(
userId: userId == null && nullToAbsent
? const Value.absent()
: Value(userId),
enablePopups: enablePopups == null && nullToAbsent
? const Value.absent()
: Value(enablePopups),
locale: locale == null && nullToAbsent
? const Value.absent()
: Value(locale),
showIntroduction: showIntroduction == null && nullToAbsent
? const Value.absent()
: Value(showIntroduction),
sideBarWidth: sideBarWidth == null && nullToAbsent
? const Value.absent()
: Value(sideBarWidth),
callButtons: Value(callButtons),
pinnedActions: Value(pinnedActions),
callButtonsPosition: callButtonsPosition == null && nullToAbsent
? const Value.absent()
: Value(callButtonsPosition),
workWithUsTabEnabled: workWithUsTabEnabled == null && nullToAbsent
? const Value.absent()
: Value(workWithUsTabEnabled),
videoDevice: videoDevice == null && nullToAbsent
? const Value.absent()
: Value(videoDevice),
audioDevice: audioDevice == null && nullToAbsent
? const Value.absent()
: Value(audioDevice),
outputDevice: outputDevice == null && nullToAbsent
? const Value.absent()
: Value(outputDevice),
screenDevice: screenDevice == null && nullToAbsent
? const Value.absent()
: Value(screenDevice),
noiseSuppression: noiseSuppression == null && nullToAbsent
? const Value.absent()
: Value(noiseSuppression),
noiseSuppressionLevel: noiseSuppressionLevel == null && nullToAbsent
? const Value.absent()
: Value(noiseSuppressionLevel),
echoCancellation: echoCancellation == null && nullToAbsent
? const Value.absent()
: Value(echoCancellation),
autoGainControl: autoGainControl == null && nullToAbsent
? const Value.absent()
: Value(autoGainControl),
highPassFilter: highPassFilter == null && nullToAbsent
? const Value.absent()
: Value(highPassFilter),
muteKeys: muteKeys == null && nullToAbsent
? const Value.absent()
: Value(muteKeys),
);
}