FXSwitch constructor

const FXSwitch({
  1. Key? key,
  2. bool onOffMode = true,
  3. bool onOffCondition = true,
  4. Color? onColor,
  5. Color? offColor,
  6. String onText = 'เปิด',
  7. String offText = 'ปิด',
  8. required bool onSelected,
  9. required bool offSelected,
  10. dynamic onTap()?,
})

Implementation

const FXSwitch({
  Key? key,
  this.onOffMode = true,
  this.onOffCondition = true,
  this.onColor,
  this.offColor,
  this.onText = 'เปิด',
  this.offText = 'ปิด',
  required this.onSelected,
  required this.offSelected,
  this.onTap,
}) : super(key: key);