changeColor method

void changeColor(
  1. Color color
)

Implementation

void changeColor(Color color) {
  _color = color;
  notifyListeners();
}