updateColor method

void updateColor(
  1. Set<ProtoColor>? value
)

Updates the color being chosen.

Implementation

void updateColor(Set<ProtoColor>? value) {
  if (value == null) return;
  color = value.isEmpty ? ProtoColor.UNLIT : value.first;
  notifyListeners();
}