parent property Null safety

  1. @override
ContainerLayer? parent
override

This layer's parent in the layer tree.

The parent of the root node in the layer tree is null.

Only subclasses of ContainerLayer can have children in the layer tree. All other layer classes are used for leaves in the layer tree.

Implementation

@override
ContainerLayer? get parent => super.parent as ContainerLayer?;