ActionCommitted class

A committed action with stable actionId and affected nodeIds.

Available extensions

Constructors

ActionCommitted({required String actionId, required ActionType type, required List<NodeId> nodeIds, required int timestampMs, Map<String, Object?>? payload})
const

Properties

actionId String
final
hashCode int
The hash code for this object.
no setterinherited
nodeIds List<NodeId>
final
payload Map<String, Object?>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestampMs int
final
type ActionType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryDrawStyle() → ({int colorArgb, double thickness, String tool})?

Available on ActionCommitted, provided by the ActionCommittedDelta extension

Parses common draw style metadata from the action payload.
tryEraserThickness() double?

Available on ActionCommitted, provided by the ActionCommittedDelta extension

Parses eraser metadata from the action payload.
tryMoveLayerIndices() → ({int sourceLayerIndex, int targetLayerIndex})?

Available on ActionCommitted, provided by the ActionCommittedDelta extension

Parses layer move metadata from the action payload.
tryTransformDelta() Transform2D?

Available on ActionCommitted, provided by the ActionCommittedDelta extension

Parses payload.delta into a Transform2D when present and valid.

Operators

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