addAS method

BGPPathAttributes addAS(
  1. int asNumber
)

Adds an AS to the path

Implementation

BGPPathAttributes addAS(int asNumber) {
  final newPath = List<int>.from(asPath)..add(asNumber);
  return copyWith(asPath: newPath, asPathLength: newPath.length);
}