hoverColor property Null safety

Color hoverColor

The color that should be used for the reaction when isHovered is true.

Used when the toggleable needs to change the reaction color/transparency, when it is being hovered over.

Implementation

Color get hoverColor => _hoverColor!;
void hoverColor=(Color value)

Implementation

set hoverColor(Color value) {
  if (value == _hoverColor) {
    return;
  }
  _hoverColor = value;
  notifyListeners();
}