copyWith method
Creates a copy with updated values
Implementation
LinkStateEntry<T> copyWith({
T? sourceNode,
T? targetNode,
num? linkCost,
LinkStateStatus? status,
DateTime? lastUpdate,
int? sequenceNumber,
Map<String, dynamic>? attributes,
}) {
return LinkStateEntry<T>(
sourceNode: sourceNode ?? this.sourceNode,
targetNode: targetNode ?? this.targetNode,
linkCost: linkCost ?? this.linkCost,
status: status ?? this.status,
lastUpdate: lastUpdate ?? this.lastUpdate,
sequenceNumber: sequenceNumber ?? this.sequenceNumber,
attributes: attributes ?? this.attributes,
);
}