layers property Null safety

PdfLayerCollection layers

Gets the collection of PdfLayer from the PDF document.

Implementation

PdfLayerCollection get layers {
  _layers ??= PdfLayerCollectionHelper.load(this);
  return _layers!;
}