overlayColor property

MaterialStateProperty<Color?>? overlayColor
final

The color for the switch's Material.

Resolves in the following states:

If null, then the value of activeColor with alpha kRadialReactionAlpha and hoverColor is used in the pressed and hovered state. If that is also null, the value of SwitchThemeData.overlayColor is used. If that is also null, then the default value is used in the pressed and hovered state.

Implementation

final MaterialStateProperty<Color?>? overlayColor;