insert method

void insert(
  1. int index,
  2. PdfNamedDestination namedDestination
)

Inserts a new named destination at the specified index.

Implementation

void insert(int index, PdfNamedDestination namedDestination) {
  if (index < 0 || index > count) {
    throw RangeError(
        "The index can't be less then zero or greater then Count.");
  }
  _namedCollections.insert(index, namedDestination);
}