TSwitch constructor

const TSwitch({
  1. Key? key,
  2. required String label,
  3. required String description,
  4. required bool value,
  5. required ValueChanged<bool> onChanged,
  6. String? error,
  7. bool isEnabled = true,
  8. bool isError = false,
  9. Color? inactiveTrackColor,
  10. Color? inactiveThumbColor,
  11. double? width,
  12. double? height,
  13. bool lockWhenEnabled = false,
})

Implementation

const TSwitch({
  super.key,
  required this.label,
  required this.description,
  required this.value,
  required this.onChanged,
  this.error,
  this.isEnabled = true,
  this.isError = false,
  this.inactiveTrackColor,
  this.inactiveThumbColor,
  this.width,
  this.height,
  this.lockWhenEnabled = false,
});