inactiveText property
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
The text to display when the switch is off. This parameter is only necessary when showOnOff property is true.
Defaults to 'Off' if no value was given.
To change value style, the following properties are available
inactiveTextColor
- The color to use on the text value when the switch is off.
inactiveTextFontWeight - The font weight to use on the text value when the switch is off.
Implementation
/// The text to display when the switch is off.
/// This parameter is only necessary when [showOnOff] property is true.
///
/// Defaults to 'Off' if no value was given.
///
/// To change value style, the following properties are available
///
/// [inactiveTextColor] - The color to use on the text value when the switch is off.
/// [inactiveTextFontWeight] - The font weight to use on the text value when the switch is off.
final String? inactiveText;