AppSwitch constructor

const AppSwitch({
  1. Key? key,
  2. String? activeTxt = 'ON',
  3. String? disableTxt = 'OFF',
  4. bool? initSwitched = false,
  5. ValueChanged<bool>? onChanged,
  6. Color? activeColor,
  7. Color? activeTxtColor,
  8. Color? deActiveColor,
  9. Color? activeOptionColor,
})

Implementation

const AppSwitch({
  super.key,
  this.activeTxt = 'ON',
  this.disableTxt = 'OFF',
  this.initSwitched = false,
  this.onChanged,
  this.activeColor,
  this.activeTxtColor,
  this.deActiveColor,
  this.activeOptionColor,
});