SubZeroLabeledSwitch constructor

const SubZeroLabeledSwitch({
  1. Key? key,
  2. required String label,
  3. required bool value,
  4. required ValueChanged<bool>? onChanged,
  5. String? description,
  6. String activeLabel = 'YES',
  7. String inactiveLabel = 'NO',
  8. SubZeroSwitchSize size = SubZeroSwitchSize.medium,
  9. bool enabled = true,
  10. SubZeroSwitchLabelPosition labelPosition = SubZeroSwitchLabelPosition.start,
})

Implementation

const SubZeroLabeledSwitch({
  super.key,
  required this.label,
  required this.value,
  required this.onChanged,
  this.description,
  this.activeLabel = 'YES',
  this.inactiveLabel = 'NO',
  this.size = SubZeroSwitchSize.medium,
  this.enabled = true,
  this.labelPosition = SubZeroSwitchLabelPosition.start,
});