LayerStack constructor

const LayerStack({
  1. Key? key,
  2. required ProImageEditorConfigs configs,
  3. required List<Layer> layers,
  4. bool? cutOutsideImageArea,
  5. bool freeStyleHighPerformance = false,
  6. TransformHelper transformHelper = const TransformHelper(editorBodySize: Size.zero, mainBodySize: Size.zero, mainImageSize: Size.zero),
  7. 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,
});