inactiveColor property Null safety

Color inactiveColor

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

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

Implementation

Color get inactiveColor => _inactiveColor!;
void inactiveColor=(Color value)

Implementation

set inactiveColor(Color value) {
  if (_inactiveColor == value) {
    return;
  }
  _inactiveColor = value;
  notifyListeners();
}