PaintEditorInitConfigs class
Configuration class for initializing the paint editor.
This class extends EditorInitConfigs and adds specific parameters related to painting functionality.
- Inheritance
-
- Object
- EditorInitConfigs
- PaintEditorInitConfigs
Constructors
-
PaintEditorInitConfigs({ProImageEditorConfigs configs = const ProImageEditorConfigs(), ProImageEditorCallbacks callbacks = const ProImageEditorCallbacks(), TransformConfigs? transformConfigs, List<
Layer> ? layers, Size? mainImageSize, Size? mainBodySize, FilterMatrix appliedFilters = const [], double appliedBlurFactor = 0, ImageEditingEmptyCallback? onCloseEditor, ImageEditingCompleteCallback? onImageEditingComplete, dynamic onImageEditingStarted()?, bool convertToUint8List = false, bool enableFakeHero = false, required ThemeData theme}) -
Creates a new instance of PaintEditorInitConfigs.
const
Properties
- appliedBlurFactor → double
-
The applied blur factor.
finalinherited
- appliedFilters → FilterMatrix
-
The list of applied filters.
finalinherited
- callbacks → ProImageEditorCallbacks
-
The callbacks for the image editor.
finalinherited
- configs → ProImageEditorConfigs
-
The configuration options for the image editor.
finalinherited
- convertToUint8List → bool
-
Determines whether to return the image as a Uint8List when closing the editor.
finalinherited
- enableFakeHero → bool
-
Determines whether we draw a "fake" hero widget or not.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
layers
→ List<
Layer> ? -
The layers in the editor.
finalinherited
- mainBodySize → Size?
-
The size of the body with layers applied.
finalinherited
- mainImageSize → Size?
-
The size of the image in the main editor.
finalinherited
- onCloseEditor → ImageEditingEmptyCallback?
-
A callback function that will be called before the image editor will close.
finalinherited
- onImageEditingComplete → ImageEditingCompleteCallback?
-
A callback function that will be called when the editing is done,
and it returns the edited image as a
Uint8List
with the formatjpg
.finalinherited - onImageEditingStarted → dynamic Function()?
-
A callback function that is triggered when the image generation is started.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- theme → ThemeData
-
The theme data for the editor.
finalinherited
- transformConfigs → TransformConfigs?
-
The transformation configurations for the editor.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited