setCurrentColor method
Sets the selected brush's colour.
Implementation
void setCurrentColor(Color color) {
if (brushColors[currentBrush] == color) return;
brushColors[currentBrush] = color;
notifyListeners();
}
Sets the selected brush's colour.
void setCurrentColor(Color color) {
if (brushColors[currentBrush] == color) return;
brushColors[currentBrush] = color;
notifyListeners();
}