trackColor property Null safety

MaterialStateProperty<Color?>? trackColor
final

The color of this Switch's track.

Resolved in the following states:

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

Implementation

final MaterialStateProperty<Color?>? trackColor;