updateFromNeighbor method
Updates the route with new information from a neighbor
Implementation
DistanceVectorRouteEntry<T> updateFromNeighbor(
T neighbor,
num newCost,
int newHopCount,
) {
return copyWith(
cost: newCost,
hopCount: newHopCount,
advertisingNeighbor: neighbor,
lastUpdate: DateTime.now(),
);
}