activeColor property Null safety

Color activeColor

The color that should be used in the active state (i.e., when ToggleableStateMixin.value is true).

For example, a checkbox should use this color when checked.

Implementation

Color get activeColor => _activeColor!;
void activeColor=(Color value)

Implementation

set activeColor(Color value) {
  if (_activeColor == value) {
    return;
  }
  _activeColor = value;
  notifyListeners();
}