Switch constructor

const Switch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. Widget? leading,
  5. Widget? trailing,
})

Implementation

const Switch({
  super.key,
  required this.value,
  required this.onChanged,
  this.leading,
  this.trailing,
});