NeighborInfo constructor

NeighborInfo({
  1. int? nodeId,
  2. int? lastSentById,
  3. int? nodeBroadcastIntervalSecs,
  4. Iterable<Neighbor>? neighbors,
})

Implementation

factory NeighborInfo({
  $core.int? nodeId,
  $core.int? lastSentById,
  $core.int? nodeBroadcastIntervalSecs,
  $core.Iterable<Neighbor>? neighbors,
}) {
  final result = create();
  if (nodeId != null) result.nodeId = nodeId;
  if (lastSentById != null) result.lastSentById = lastSentById;
  if (nodeBroadcastIntervalSecs != null)
    result.nodeBroadcastIntervalSecs = nodeBroadcastIntervalSecs;
  if (neighbors != null) result.neighbors.addAll(neighbors);
  return result;
}