SwitchWidget constructor

const SwitchWidget({
  1. Key? key,
  2. required Widget title,
  3. bool value = false,
  4. ValueChanged<bool>? onChange,
  5. Widget? subtitle,
})

Implementation

const SwitchWidget({
  Key? key,
  required this.title,
  this.value = false,
  this.onChange,
  this.subtitle,
}) : super(key: key);