DiagramTransaction class final
An ordered set of steps applied together as one edit, with the label it carries in history and an optional selectionAfter.
Constructors
-
DiagramTransaction({required List<
DiagramStep> steps, DiagramSelection? selectionAfter, String label = 'Edit diagram'})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionAfter → DiagramSelection?
-
final
-
steps
→ List<
DiagramStep> -
final
Methods
-
apply(
DiagramEditorState state) → DiagramEditorState -
applyTo(
DiagramDocument document) → DiagramDocument -
Applies every step to
documentalone, sharing one batch across consecutive built-in steps. Builders use it to read a staged document without replaying each step against a fresh copy. -
applyWithChanges(
DiagramEditorState state) → ({DiagramChangeSet changes, DiagramEditorState state}) - Applies every step and reports the element changes they made.
-
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