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),
muteKeys: muteKeys == null && nullToAbsent
? const Value.absent()
: Value(muteKeys),
);
}