TatweerSwitch constructor

const TatweerSwitch({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. Color? inactiveColor,
  6. bool isDisabled = false,
  7. String? label,
  8. TextStyle? labelStyle,
  9. String? subtitle,
  10. TextStyle? subtitleStyle,
  11. bool labelOnRight = false,
})

Implementation

const TatweerSwitch({
  Key? key,
  required this.value,
  this.onChanged,
  this.activeColor,
  this.inactiveColor,
  this.isDisabled = false,
  this.label,
  this.labelStyle,
  this.subtitle,
  this.subtitleStyle,
  this.labelOnRight = false,
}) : super(key: key);