overlayColor property

WidgetStateProperty<Color?>? overlayColor
final

The color for the switch's Material.

Resolves in the following states:

If specified, overrides the default value of Switch.overlayColor.

Implementation

final WidgetStateProperty<Color?>? overlayColor;