updateColor method

void updateColor(
  1. Color newColor
)

Implementation

void updateColor(Color newColor) {
  value = newColor;
}