XSwitch constructor

const XSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged onChanged,
  4. String title = '',
  5. double titleFontSize = 12,
  6. FontWeight titleFontWeight = FontWeight.normal,
})

Implementation

const XSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.title = '',
  this.titleFontSize = 12,
  this.titleFontWeight = FontWeight.normal,
});