GTFSwitch constructor

const GTFSwitch({
  1. Key? key,
  2. dynamic onChanged(
    1. bool
    )?,
  3. bool isOn = false,
  4. bool isEnable = true,
  5. double width = 32,
  6. double height = 20,
  7. EdgeInsets margin = EdgeInsets.zero,
  8. Color? activeColor,
  9. Color? trackColor = GTFColor.grey2,
  10. Color? thumbColor = GTFColor.white,
})

Implementation

const GTFSwitch({
  Key? key,
  this.onChanged,
  this.isOn = false,
  this.isEnable = true,
  this.width = 32,
  this.height = 20,
  this.margin = EdgeInsets.zero,
  this.activeColor,
  this.trackColor = GTFColor.grey2,
  this.thumbColor = GTFColor.white,
}) : super(key: key);