operator [] method Null safety

PdfListFieldItem operator [](
  1. int index
)

Gets the PdfListFieldItem at the specified index.

Implementation

PdfListFieldItem operator [](int index) {
  if (index < 0 || index >= count) {
    throw RangeError('index');
  }
  return _list[index] as PdfListFieldItem;
}