CropRotateEditor class

The CropRotateEditor widget allows users to editing images with crop, flip and rotate tools.

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

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

Constructors

CropRotateEditor.asset(String assetPath, {Key? key, required CropRotateEditorInitConfigs initConfigs})
Constructs a CropRotateEditor widget with an image loaded from an asset.
factory
CropRotateEditor.autoSource({Key? key, required CropRotateEditorInitConfigs initConfigs, Uint8List? byteArray, File? file, String? assetPath, String? networkUrl})
Constructs a CropRotateEditor widget with an image loaded automatically based on the provided source.
factory
CropRotateEditor.file(File file, {Key? key, required CropRotateEditorInitConfigs initConfigs})
Constructs a CropRotateEditor widget with an image loaded from a file.
factory
CropRotateEditor.memory(Uint8List byteArray, {Key? key, required CropRotateEditorInitConfigs initConfigs})
Constructs a CropRotateEditor widget with image data loaded from memory.
factory
CropRotateEditor.network(String networkUrl, {Key? key, required CropRotateEditorInitConfigs initConfigs})
Constructs a CropRotateEditor 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 CropRotateEditorInitConfigs
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<CropRotateEditor>
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