operator [] method

PdfLayer operator [](
  1. int index
)

Gets PdfLayer by its index from PdfLayerCollection.

Implementation

PdfLayer operator [](int index) {
  if (index < 0 || index >= count) {
    throw RangeError('index');
  }
  return _helper.list[index] as PdfLayer;
}