copyWith method
MessageContainer
copyWith({
- String? macAddress,
- int? lastMessageRssi,
- DateTime? lastUpdate,
- MessageSource? source,
- Map<
IDType, BasicIDMessage> ? basicIdMessage, - LocationMessage? locationMessage,
- OperatorIDMessage? operatorIdMessage,
- SelfIDMessage? selfIdMessage,
- AuthMessage? authenticationMessage,
- SystemMessage? systemDataMessage,
Implementation
MessageContainer copyWith({
String? macAddress,
int? lastMessageRssi,
DateTime? lastUpdate,
pigeon.MessageSource? source,
Map<IDType, BasicIDMessage>? basicIdMessage,
LocationMessage? locationMessage,
OperatorIDMessage? operatorIdMessage,
SelfIDMessage? selfIdMessage,
AuthMessage? authenticationMessage,
SystemMessage? systemDataMessage,
}) =>
MessageContainer(
macAddress: macAddress ?? this.macAddress,
lastMessageRssi: lastMessageRssi ?? this.lastMessageRssi,
lastUpdate: lastUpdate ?? DateTime.now(),
source: source ?? this.source,
basicIdMessages: basicIdMessage ?? this.basicIdMessages,
locationMessage: locationMessage ?? this.locationMessage,
operatorIdMessage: operatorIdMessage ?? this.operatorIdMessage,
selfIdMessage: selfIdMessage ?? this.selfIdMessage,
authenticationMessage:
authenticationMessage ?? this.authenticationMessage,
systemDataMessage: systemDataMessage ?? this.systemDataMessage,
);