thumbColor property Null safety

MaterialStateProperty<Color?>? thumbColor
final

The color of this Switch's thumb.

Resolved in the following states:

If null, then the value of activeColor is used in the selected state and inactiveThumbColor in the default state. If that is also null, then the value of SwitchThemeData.thumbColor is used. If that is also null, then the following colors are used:

StateLight themeDark theme
DefaultColors.grey.shade50Colors.grey.shade400
SelectedThemeData.toggleableActiveColorThemeData.toggleableActiveColor
DisabledColors.grey.shade400Colors.grey.shade800

Implementation

final MaterialStateProperty<Color?>? thumbColor;