thumbIcon property

MaterialStateProperty<Icon?>? thumbIcon
final

The icon to use on the thumb of this switch

Resolved in the following states:

If null, then the value of SwitchThemeData.thumbIcon is used. If this is also null, then the Switch does not have any icons on the thumb.

Implementation

final MaterialStateProperty<Icon?>? thumbIcon;