copyWith method
SessionStruct
copyWith({
- String? topic,
- RelayerProtocolOptions? relay,
- int? expiry,
- bool? acknowledged,
- String? controller,
- SessionNamespaces? namespaces,
- ProposalRequiredNamespaces? requiredNamespaces,
- SessionPublicKeyMetadata? self,
- SessionPublicKeyMetadata? peer,
Implementation
SessionStruct copyWith({
String? topic,
RelayerProtocolOptions? relay,
int? expiry,
bool? acknowledged,
String? controller,
SessionNamespaces? namespaces,
ProposalRequiredNamespaces? requiredNamespaces,
SessionPublicKeyMetadata? self,
SessionPublicKeyMetadata? peer,
}) {
return SessionStruct(
topic: topic ?? this.topic,
relay: relay ?? this.relay,
expiry: expiry ?? this.expiry,
acknowledged: acknowledged ?? this.acknowledged,
controller: controller ?? this.controller,
namespaces: namespaces ?? this.namespaces,
requiredNamespaces: requiredNamespaces ?? this.requiredNamespaces,
self: self ?? this.self,
peer: peer ?? this.peer,
);
}