LayerStack constructor
const
LayerStack({
- Key? key,
- required ProImageEditorConfigs configs,
- required List<
Layer> layers, - 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.
This widget is responsible for rendering a collection of layers within a stack, applying transformations and managing interactions based on the provided configurations.
Example:
LayerStack(
configs: myEditorConfigs,
layers: myLayers,
cutOutsideImageArea: true,
freeStyleHighPerformance: true,
transformHelper: myTransformHelper,
)
Implementation
const LayerStack({
super.key,
required this.configs,
required this.layers,
this.cutOutsideImageArea,
this.freeStyleHighPerformance = false,
this.transformHelper = const TransformHelper(
editorBodySize: Size.zero,
mainBodySize: Size.zero,
mainImageSize: Size.zero,
),
this.clipBehavior = Clip.hardEdge,
});