SFSwitchField constructor

const SFSwitchField({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. bool isDisabled = false,
  5. Color? activeColor,
  6. Color? inactiveThumbColor,
  7. Color? activeTrackColor,
  8. Color? inactiveTrackColor,
  9. String? tooltipMessage = 'Ce champ est désactivé',
})

Implementation

const SFSwitchField({
  super.key,
  required this.value,
  required this.onChanged,
  this.isDisabled = false,
  this.activeColor,
  this.inactiveThumbColor,
  this.activeTrackColor,
  this.inactiveTrackColor,
  this.tooltipMessage = 'Ce champ est désactivé',
});