FxSwitch constructor

const FxSwitch({
  1. required bool value,
  2. required ValueChanged<bool> onChanged,
  3. Key? key,
  4. double size = 24.0,
  5. Color? activeColor,
  6. Color? inactiveColor,
  7. Color? thumbColor,
  8. Color? borderColor,
  9. bool isDisabled = false,
  10. Duration duration = const Duration(milliseconds: 200),
  11. Curve curve = Curves.easeInOut,
})

Constructs an FxSwitch.

Implementation

const FxSwitch({
  required this.value,
  required this.onChanged,
  super.key,
  this.size = 24.0,
  this.activeColor,
  this.inactiveColor,
  this.thumbColor,
  this.borderColor,
  this.isDisabled = false,
  this.duration = const Duration(milliseconds: 200),
  this.curve = Curves.easeInOut,
});