copyWith method
OSPFRouteEntry<T>
copyWith({
- T? destination,
- T? nextHop,
- num? cost,
- T? advertisingRouter,
- LinkStateType? routeType,
- DateTime? lastUpdate,
- bool? isDirectlyConnected,
- 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,
);
}