PaintingEditor class

The PaintingEditor widget allows users to editing images with painting tools.

You can create a PaintingEditor using one of the factory methods provided:

  • PaintingEditor.file: Loads an image from a file.
  • PaintingEditor.asset: Loads an image from an asset.
  • PaintingEditor.network: Loads an image from a network URL.
  • PaintingEditor.memory: Loads an image from memory as a Uint8List.
  • PaintingEditor.autoSource: Automatically selects the source based on provided parameters.
Inheritance
Mixed in types

Constructors

PaintingEditor.asset(String assetPath, {Key? key, required PaintEditorInitConfigs initConfigs})
Constructs a PaintingEditor widget with an image loaded from an asset.
factory
PaintingEditor.autoSource({Key? key, Uint8List? byteArray, File? file, String? assetPath, String? networkUrl, required PaintEditorInitConfigs initConfigs})
Constructs a PaintingEditor widget with an image loaded automatically based on the provided source.
factory
PaintingEditor.file(File file, {Key? key, required PaintEditorInitConfigs initConfigs})
Constructs a PaintingEditor widget with an image loaded from a file.
factory
PaintingEditor.memory(Uint8List byteArray, {Key? key, required PaintEditorInitConfigs initConfigs})
Constructs a PaintingEditor widget with image data loaded from memory.
factory
PaintingEditor.network(String networkUrl, {Key? key, required PaintEditorInitConfigs initConfigs})
Constructs a PaintingEditor widget with an image loaded from a network URL.
factory

Properties

editorImage EditorImage
Returns the editor image
final
hashCode int
The hash code for this object.
no setterinherited
initConfigs PaintEditorInitConfigs
Returns the initialization configurations for the editor.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<PaintingEditor>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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