PaintEditorInitConfigs constructor

const PaintEditorInitConfigs({
  1. ProImageEditorConfigs configs = const ProImageEditorConfigs(),
  2. ProImageEditorCallbacks callbacks = const ProImageEditorCallbacks(),
  3. TransformConfigs? transformConfigs,
  4. List<Layer>? layers,
  5. Size? mainImageSize,
  6. Size? mainBodySize,
  7. FilterMatrix appliedFilters = const [],
  8. double appliedBlurFactor = 0,
  9. ImageEditingEmptyCallback? onCloseEditor,
  10. ImageEditingCompleteCallback? onImageEditingComplete,
  11. dynamic onImageEditingStarted()?,
  12. bool convertToUint8List = false,
  13. bool enableFakeHero = false,
  14. required ThemeData theme,
})

Creates a new instance of PaintEditorInitConfigs.

The theme parameter specifies the theme data for the editor. The imageSize parameter specifies the size of the image. The paddingHelper parameter specifies additional padding for the editor. The other parameters are inherited from EditorInitConfigs.

Implementation

const PaintEditorInitConfigs({
  super.configs,
  super.callbacks,
  super.transformConfigs,
  super.layers,
  super.mainImageSize,
  super.mainBodySize,
  super.appliedFilters,
  super.appliedBlurFactor,
  super.onCloseEditor,
  super.onImageEditingComplete,
  super.onImageEditingStarted,
  super.convertToUint8List,
  this.enableFakeHero = false,
  required super.theme,
});