CustomSwitch constructor

const CustomSwitch({
  1. bool isOpen = true,
  2. ValueChanged<bool>? onChange,
  3. bool labelRight = false,
  4. bool? isInnerStyle = false,
  5. Widget label = const SizedBox(),
  6. bool? enableFirstCallBack = false,
  7. double? margin = 0,
  8. double scale = 1,
  9. Color? activeColor,
  10. Color? activeTrackColor,
  11. Color? inactiveThumbColor,
  12. Color? inactiveTrackColor,
  13. Key? key,
})

Implementation

const CustomSwitch({
  this.isOpen=true,
  this.onChange,
  this.labelRight=false,
  this.isInnerStyle = false,
  this.label = const SizedBox(),
  this.enableFirstCallBack = false,
  this.margin = 0,
  this.scale=1,
  this.activeColor,
  this.activeTrackColor,
  this.inactiveThumbColor,
  this.inactiveTrackColor,
  Key? key}) : super(key: key);