EditorStateHistory class

The EditorStateHistory 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:

EditorStateHistory changes = EditorStateHistory(
  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:

EditorStateHistory changes = EditorStateHistory(
  bytesRefIndex: 0,
  blur: BlurStateHistory(blur: 0),
  filters: [],
  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

EditorStateHistory({required int bytesRefIndex, required BlurStateHistory blur, required List<Layer> layers, required List<FilterStateHistory> filters, required TransformConfigs transformConfigs})

Properties

blur BlurStateHistory
getter/setter pair
bytesRefIndex int
getter/setter pair
filters List<FilterStateHistory>
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
transformConfigs TransformConfigs
This method is being prepared for a future release.
getter/setter pair

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