copyWith method
Creates a copy with updated values
Implementation
BGPRouteEntry<T> copyWith({
T? destination,
T? nextHop,
int? asPathLength,
List<int>? asPath,
BGPOrigin? origin,
int? localPreference,
int? med,
List<String>? communities,
DateTime? lastUpdate,
bool? isDirectlyConnected,
int? advertisingAS,
Map<String, dynamic>? additionalAttributes,
}) {
return BGPRouteEntry<T>(
destination: destination ?? this.destination,
nextHop: nextHop ?? this.nextHop,
asPathLength: asPathLength ?? this.asPathLength,
asPath: asPath ?? this.asPath,
origin: origin ?? this.origin,
localPreference: localPreference ?? this.localPreference,
med: med ?? this.med,
communities: communities ?? this.communities,
lastUpdate: lastUpdate ?? this.lastUpdate,
isDirectlyConnected: isDirectlyConnected ?? this.isDirectlyConnected,
advertisingAS: advertisingAS ?? this.advertisingAS,
additionalAttributes: additionalAttributes ?? this.additionalAttributes,
);
}