activeColor property

  1. @Deprecated('Use activeThumbColor or activeTrackColor instead. ' 'This feature was deprecated after v3.31.0-2.0.pre.')
Color? activeColor
final

The color to use when this switch is on.

Defaults to ColorScheme.secondary.

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

Implementation

@Deprecated(
  'Use activeThumbColor or activeTrackColor instead. '
  'This feature was deprecated after v3.31.0-2.0.pre.',
)
final Color? activeColor;