LabeledSwitch constructor

LabeledSwitch({
  1. required String name,
  2. required Switch lazySwitch,
  3. required void onToggle(
    1. bool
    ),
  4. required SwitchType type,
  5. required bool value,
  6. IconData? activeIcon,
  7. String? activeText,
  8. bool disabled = false,
  9. IconData? inactiveIcon,
  10. String? inactiveText,
  11. double padding = lazy.defaultPadding,
  12. bool showOnOff = false,
})

Implementation

LabeledSwitch({
  required this.name,
  required this.lazySwitch,
  required this.onToggle,
  required this.type,
  required this.value,
  this.activeIcon,
  this.activeText,
  this.disabled = false,
  this.inactiveIcon,
  this.inactiveText,
  this.padding = lazy.defaultPadding,
  this.showOnOff = false,
});