SwitchWidget constructor
const
SwitchWidget({
- Key? key,
- bool isSelected = false,
- required String title,
- VoidCallbackWithValue<
bool> ? onSelected, - ColorModel? inactiveThumbColor,
- double? switchSize,
- String? semanticLabel,
- String? semanticHint,
Implementation
const SwitchWidget({
super.key,
this.isSelected = false,
required this.title,
this.onSelected,
this.inactiveThumbColor,
this.switchSize,
this.semanticLabel,
this.semanticHint,
});