TDSwitch constructor

const TDSwitch({
  1. Key? key,
  2. bool enable = true,
  3. bool isOn = false,
  4. TDSwitchSize? size = TDSwitchSize.medium,
  5. TDSwitchType? type = TDSwitchType.fill,
  6. Color? trackOnColor,
  7. Color? trackOffColor,
  8. Color? thumbContentOnColor,
  9. Color? thumbContentOffColor,
  10. ValueChanged<bool>? onChanged,
})

Implementation

const TDSwitch({
  Key? key,
  this.enable = true,
  this.isOn = false,
  this.size = TDSwitchSize.medium,
  this.type = TDSwitchType.fill,
  this.trackOnColor,
  this.trackOffColor,
  this.thumbContentOnColor,
  this.thumbContentOffColor,
  this.onChanged,
}) : super(key: key);