setColor method
Sets the painting color to the specified color and notifies listeners.
Implementation
void setColor(Color color) {
_color = color;
notifyListeners();
}
Sets the painting color to the specified color and notifies listeners.
void setColor(Color color) {
_color = color;
notifyListeners();
}