brushColors property
Per-brush color memory. The layer's currentColor is a view onto this map at currentBrush; switching brushes loads that brush's remembered color.
Implementation
final Map<BrushType, Color> brushColors = Map<BrushType, Color>.from(
kBrushDefaultColors,
);