EditorInitConfigs constructor
const
EditorInitConfigs({
- required ThemeData theme,
- ProImageEditorConfigs configs = const ProImageEditorConfigs(),
- ProImageEditorCallbacks callbacks = const ProImageEditorCallbacks(),
- Size? mainImageSize,
- Size? mainBodySize,
- TransformConfigs? transformConfigs,
- FilterMatrix appliedFilters = const [],
- double appliedBlurFactor = 0,
- List<
Layer> ? layers, - ImageEditingEmptyCallback? onCloseEditor,
- ImageEditingCompleteCallback? onImageEditingComplete,
- dynamic onImageEditingStarted()?,
- bool convertToUint8List = false,
Creates a new instance of EditorInitConfigs.
The theme
parameter specifies the theme data for the editor.
The configs
parameter specifies the configuration options for the image editor.
The callbacks
parameter specifies the callback options for the image editor.
The mainImageSize
parameter specifies the size of the image with layers applied.
The mainBodySize
parameter specifies the size of the body with layers applied.
The appliedFilters
parameter specifies the list of applied filters.
The appliedBlurFactor
parameter specifies the applied blur factor.
The transformConfigs
parameter specifies the transformation configurations for the editor.
The layers
parameter specifies the layers in the editor.
Implementation
const EditorInitConfigs({
required this.theme,
this.configs = const ProImageEditorConfigs(),
this.callbacks = const ProImageEditorCallbacks(),
this.mainImageSize,
this.mainBodySize,
this.transformConfigs,
this.appliedFilters = const [],
this.appliedBlurFactor = 0,
this.layers,
this.onCloseEditor,
this.onImageEditingComplete,
this.onImageEditingStarted,
this.convertToUint8List = false,
});