Layer class

A z-ordered collection of nodes.

Layers are rendered in list order. Nodes inside a layer are rendered in list order; the last node is considered the top-most for hit-testing.

Constructors

Layer({List<SceneNode>? nodes, bool isBackground = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
isBackground bool
getter/setter pair
nodes List<SceneNode>
Node list owned by the layer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited