ProImageEditorState class

Inheritance

Constructors

ProImageEditorState()

Properties

canRedo bool
Determines whether redo actions can be performed on the current state.
no setter
canUndo bool
Determines whether undo actions can be performed on the current state.
no setter
context BuildContext
The location in the tree where this widget builds.
no setterinherited
cropRotateEditor GlobalKey<CropRotateEditorState>
A GlobalKey for the Crop and Rotate Editor, used to access and control the state of the crop and rotate editor.
final
emojiEditor GlobalKey<EmojiEditorState>
A GlobalKey for the Emoji Editor, used to access and control the state of the emoji editor.
final
filterEditor GlobalKey<FilterEditorState>
A GlobalKey for the Filter Editor, used to access and control the state of the filter editor.
final
hashCode int
The hash code for this object.
no setterinherited
hoverRemoveBtn bool
Flag indicating if the remove button is hovered.
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
paintingEditor GlobalKey<PaintingEditorState>
A GlobalKey for the Painting Editor, used to access and control the state of the painting editor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenPaddingHelper EdgeInsets
Get the screen padding values.
no setter
textEditor GlobalKey<TextEditorState>
A GlobalKey for the Text Editor, used to access and control the state of the text editor.
final
widget ProImageEditor
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
addLayer(Layer layer, {int removeLayerIndex = -1, EditorImage? image}) → void
Add a new layer to the image editor.
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
closeEditor() → void
Close the image editor.
closeWarning() → void
Displays a warning dialog before closing the image editor.
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant ProImageEditor oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
override
doneEditing() → void
Complete the editing process and return the edited image.
exportStateHistory({ExportEditorConfigs configs = const ExportEditorConfigs()}) ExportStateHistory
importStateHistory(ImportStateHistory import) → void
initState() → void
Called when this object is inserted into the tree.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openCropEditor() → void
Opens the crop editor.
openEmojiEditor() → void
Opens the emoji editor.
openFilterEditor() → void
Opens the filter editor.
openPaintingEditor() → void
Opens the painting editor.
openStickerEditor() → void
Opens the sticker editor as a modal bottom sheet.
openTextEditor() → void
Opens the text editor.
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
redoAction() → void
Redo the previously undone editing action.
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
undoAction() → void
Undo the last editing action.

Operators

operator ==(Object other) bool
The equality operator.
inherited