color property
Setting this will notify all the listeners of this WindowPaintController that they need to update (it calls notifyListeners()). For this reason, this value should only be set between frames, e.g. in response to user actions, not during the build, layout, or paint phases.
This property can be set from a listener added to this WindowPaintController; however, one should not also set mode and objects in a separate statement. To change both the mode, color and objects change the controller's value.
Setting this will update the color of the selected object.
Implementation
set color(Color newColor) {
if (isSelecting) {
if (newColor != color) {
final object = selectedObject!;
object.adapter.selectUpdateColor(object, newColor);
}
}
value = value.copyWith(
color: newColor,
);
}