activeTrackColor property Null safety

Color? activeTrackColor
final

The color to use on the track when this switch is on.

Defaults to ThemeData.toggleableActiveColor with the opacity set at 50%.

Ignored if this switch is created with Switch.adaptive.

If trackColor returns a non-null color in the MaterialState.selected state, it will be used instead of this color.

Implementation

final Color? activeTrackColor;