copyWith method

BGPRouteEntry<T> copyWith({
  1. T? destination,
  2. T? nextHop,
  3. int? asPathLength,
  4. List<int>? asPath,
  5. BGPOrigin? origin,
  6. int? localPreference,
  7. int? med,
  8. List<String>? communities,
  9. DateTime? lastUpdate,
  10. bool? isDirectlyConnected,
  11. int? advertisingAS,
  12. Map<String, dynamic>? additionalAttributes,
})

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,
  );
}