ImageEditorChanges class

The ImageEditorChanges class represents changes made to an image in the image editor. It contains information about the changes applied to the image, including a reference to the image data and a list of layers.

Usage:

ImageEditorChanges changes = ImageEditorChanges(
  bytesRefIndex: 0,
  layers: [
    Layer(
      // Layer data and properties
    ),
    // Additional layers...
  ],
);

Properties:

  • bytesRefIndex (required): An integer representing the reference index to the image data. It allows identifying the specific image that the changes are applied to.

  • layers (required): A list of Layer objects representing the layers and their properties that have been added or modified in the image editor.

Example Usage:

ImageEditorChanges changes = ImageEditorChanges(
  bytesRefIndex: 0,
  layers: [
    Layer(
      name: 'Text Layer',
      type: LayerType.text,
      // Additional layer properties...
    ),
    Layer(
      name: 'Filter Layer',
      type: LayerType.filter,
      // Additional layer properties...
    ),
  ],
);

Please refer to the documentation of individual properties and methods for more details.

Constructors

ImageEditorChanges({required int bytesRefIndex, required List<Layer> layers})

Properties

bytesRefIndex int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
layers List<Layer>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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