copyWith method
DeviceConfiguration
copyWith({
- DeviceType? deviceType,
- String? terminalId,
- TerminalType? terminalType,
- String? identifier,
- bool? contactlessAllowed,
- bool? keyedEntryAllowed,
- bool? heartbeatEnabled,
- bool? barcodeReaderEnabled,
- int? sleepTimeoutSeconds,
Implementation
DeviceConfiguration copyWith({
DeviceType? deviceType,
String? terminalId,
TerminalType? terminalType,
String? identifier,
bool? contactlessAllowed,
bool? keyedEntryAllowed,
bool? heartbeatEnabled,
bool? barcodeReaderEnabled,
int? sleepTimeoutSeconds,
}) => DeviceConfiguration(
deviceType: deviceType ?? this.deviceType,
terminalId: terminalId ?? this.terminalId,
terminalType: terminalType ?? this.terminalType,
identifier: identifier ?? this.identifier,
contactlessAllowed: contactlessAllowed ?? this.contactlessAllowed,
keyedEntryAllowed: keyedEntryAllowed ?? this.keyedEntryAllowed,
heartbeatEnabled: heartbeatEnabled ?? this.heartbeatEnabled,
barcodeReaderEnabled: barcodeReaderEnabled ?? this.barcodeReaderEnabled,
sleepTimeoutSeconds: sleepTimeoutSeconds ?? this.sleepTimeoutSeconds,
);