SubZeroSwitch constructor

const SubZeroSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. String activeLabel = 'YES',
  5. String inactiveLabel = 'NO',
  6. SubZeroSwitchSize size = SubZeroSwitchSize.medium,
  7. bool enabled = true,
  8. String? semanticLabel,
})

Implementation

const SubZeroSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.activeLabel = 'YES',
  this.inactiveLabel = 'NO',
  this.size = SubZeroSwitchSize.medium,
  this.enabled = true,
  this.semanticLabel,
});