PdfLayerCollection class Null safety

The class provides methods and properties to handle the collections of PdfLayer

Inheritance

Properties

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

Methods

add({String? name, bool? visible}) PdfLayer
Creates a new PdfLayer with name and adds it to the end of the collection.
clear() → void
Clears layers from the PdfLayerCollection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove({PdfLayer? layer, String? name, bool isRemoveGraphicalContent = false}) → void
Removes layer from the collection by using layer or layer name and may also remove graphical content, if isRemoveGraphicalContent is true.
removeAt(int index, [bool isRemoveGraphicalContent = false]) → void
Removes layer by its index from collections and may also remove graphical content if isRemoveGraphicalContent is true.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](int index) PdfLayer
Gets PdfLayer by its index from PdfLayerCollection.