copyWith method

OSPFRouteEntry<T> copyWith({
  1. T? destination,
  2. T? nextHop,
  3. num? cost,
  4. T? advertisingRouter,
  5. LinkStateType? routeType,
  6. DateTime? lastUpdate,
  7. bool? isDirectlyConnected,
  8. int? areaId,
})

Creates a copy with updated values

Implementation

OSPFRouteEntry<T> copyWith({
  T? destination,
  T? nextHop,
  num? cost,
  T? advertisingRouter,
  LinkStateType? routeType,
  DateTime? lastUpdate,
  bool? isDirectlyConnected,
  int? areaId,
}) {
  return OSPFRouteEntry<T>(
    destination: destination ?? this.destination,
    nextHop: nextHop ?? this.nextHop,
    cost: cost ?? this.cost,
    advertisingRouter: advertisingRouter ?? this.advertisingRouter,
    routeType: routeType ?? this.routeType,
    lastUpdate: lastUpdate ?? this.lastUpdate,
    isDirectlyConnected: isDirectlyConnected ?? this.isDirectlyConnected,
    areaId: areaId ?? this.areaId,
  );
}