activeText property

String? activeText
final

The text to display when the switch is on. This parameter is only necessary when showOnOff property is true.

Defaults to 'On' if no value was given.

To change value style, the following properties are available

activeTextColor - The color to use on the text value when the switch is on. activeTextFontWeight - The font weight to use on the text value when the switch is on.

Implementation

final String? activeText;