A composited layer.
During painting, the render tree generates a tree of composited layers that are uploaded into the engine and displayed by the compositor. This class is the base class for all composited layers.
- Implemented by
Constructors
- Layer()
Properties
- debugCreator → dynamic
-
The object responsible for creating this layer.
read / write - nextSibling → Layer
-
This layer's next sibling in the parent layer's child list
read-only - parent → ContainerLayer
-
This layer's parent in the layer tree
read-only - previousSibling → Layer
-
This layer's previous sibling in the parent layer's child list
read-only - hashCode → int
-
Get a hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
addToScene(
SceneBuilder builder, Offset layerOffset) → void -
Override this method to upload this layer to the engine
-
debugDescribeChildren(
String prefix) → String -
Returns a description of this layer's children for use by toStringDeep.
-
debugFillDescription(
List<String> description) → void -
Add additional information to the given description for use by toStringDeep.
-
detach(
) → void -
Removes this layer from its parent layer's child list
-
replaceWith(
Layer newLayer) → void -
Replaces this layer with the given layer in the parent layer's child list
-
toString(
) → String -
Returns a string representation of this object.
-
toStringDeep(
[String prefixLineOne = '', String prefixOtherLines = '' ]) → String -
Returns a string representation of this layer and its descendants.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited