HistoryManager class

历史记录管理器 负责管理编辑历史,支持撤销和回退功能

Constructors

HistoryManager()

Properties

canUndo bool
检查是否可以回退(是否有历史记录)
no setter
count int
获取历史记录数量
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
清空所有历史记录
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popSnapshot() EditorStateSnapshot?
获取最后一个快照并移除
saveSnapshot({required Image image, required List<TextLayerData> textLayers, required double rotationAngle, required double scale}) → void
保存当前状态到历史快照
toString() String
A string representation of this object.
inherited

Operators

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

Constants

maxHistorySize → const int