PdfPageLayerCollection class Null safety

The class provides methods and properties to handle the collections of PdfPageLayer.



PdfPageLayerCollection(PdfPage page)
Initializes a new instance of the PdfPageLayerCollection class with PDF page.


count int
Gets number of the elements in the collection.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


add({String? name, bool? visible}) PdfPageLayer
Creates a new PdfPageLayer and adds it to the end of the collection.
addLayer(PdfPageLayer layer) int
Adds PdfPageLayer to the collection.
clear() → void
Clears layers from the PdfPageLayerCollection.
indexOf(PdfPageLayer layer) int
Returns index of the PdfPageLayer in the collection if exists, -1 otherwise.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
remove({PdfPageLayer? layer, String? name}) → void
Removes layer from the collection.
removeAt(int index) → void
Removes layer by its index from collections
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]
operator [](int index) PdfPageLayer
Gets PdfPageLayer by its index from PdfPageLayerCollection.