addPaintInfo method

void addPaintInfo(
  1. PaintedModel paintInfo
)

Adds a painted model to the painting history and notifies listeners of the change.

Implementation

void addPaintInfo(PaintedModel paintInfo) {
  _cleanForwardChanges();
  paintHistory.add([...activePaintings, paintInfo]);
  historyPosition++;
}