LayerStack class

A stateful widget that represents a stack of layers in an image editing application.

This widget manages the display and transformation of multiple layers, allowing for complex image editing operations such as cropping, rotating, and layering effects.

Inheritance

Constructors

LayerStack.new({Key? key, required ProImageEditorConfigs configs, required List<Layer> layers, required Color overlayColor, bool? cutOutsideImageArea, bool freeStyleHighPerformance = false, TransformHelper transformHelper = const TransformHelper(editorBodySize: Size.zero, mainBodySize: Size.zero, mainImageSize: Size.zero), Clip clipBehavior = Clip.hardEdge})
Creates a LayerStack.
const

Properties

clipBehavior Clip
The clipping behavior applied to the layer stack.
final
configs ProImageEditorConfigs
The configuration settings for the image editor.
final
cutOutsideImageArea bool?
Determines whether to cut content outside the image area.
final
freeStyleHighPerformance bool
Controls high-performance mode for free-style drawing.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layers List<Layer>
The list of layers to be displayed within the stack.
final
overlayColor Color
The outside overlay color for layers.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformHelper TransformHelper
A helper object providing transformation configurations for the layer stack.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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