SwitchWidget constructor

const SwitchWidget({
  1. Key? key,
  2. bool isSelected = false,
  3. required String title,
  4. VoidCallbackWithValue<bool>? onSelected,
  5. ColorModel? inactiveThumbColor,
  6. double? switchSize,
  7. String? semanticLabel,
  8. String? semanticHint,
})

Implementation

const SwitchWidget({
  super.key,
  this.isSelected = false,
  required this.title,
  this.onSelected,
  this.inactiveThumbColor,
  this.switchSize,
  this.semanticLabel,
  this.semanticHint,
});