DrawSnapshot class

By-value snapshot of a DrawImageLayer's mutable state. Captured at tool-open by DrawImageLayer.saveSnapshot; consumed on cancel by DrawImageLayer.restoreSnapshot. The strokes list is a shallow copy — committed strokes are settled and don't mutate after the drying animator completes, so reference-sharing is safe. Per-brush color and thickness maps are deep-copied.

Properties

brushColors → Map<BrushType, Color>
Each brush's colour at capture.
final
currentBrush → BrushType
The selected brush at capture.
final
hashCode → int
The hash code for this object.
no setterinherited
normalizedThickness → Map<BrushType, double>
Each brush's thickness at capture.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokes → List<Stroke>
The committed strokes at capture.
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

Operators

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