PrefSwitch constructor

const PrefSwitch(
  1. {Widget? title,
  2. required String pref,
  3. Key? key,
  4. Widget? subtitle,
  5. bool ignoreTileTap = false,
  6. ValueChanged<bool>? onChange,
  7. bool? disabled,
  8. bool reversed = false,
  9. Color? switchActiveColor,
  10. bool adaptive = true}
)

Implementation

const PrefSwitch({
  this.title,
  required this.pref,
  super.key,
  this.subtitle,
  this.ignoreTileTap = false,
  this.onChange,
  this.disabled,
  this.reversed = false,
  this.switchActiveColor,
  this.adaptive = true,
});