saveSnapshot method

void saveSnapshot()

Capture current state for later restoreSnapshot. Entities are copied by value — they stay mutable while the tool is open.

Implementation

void saveSnapshot() {
  _snapshot = EntitySnapshot._(
    entities: [for (final e in entities) e.copyWith()],
    selected: _selected,
    editing: _editing,
    style: pendingStyle,
    align: pendingAlign,
    colour: pendingColour,
    fontSize: pendingFontSize,
  );
}