FxSwitch constructor

const FxSwitch({
  1. required bool value,
  2. required dynamic onChanged(
    1. bool value
    ),
  3. Key? key,
  4. double? size,
  5. Color? activeColor,
  6. Color? inactiveColor,
})

Constructs an FxSwitch.

Implementation

const FxSwitch({
  required this.value,
  required this.onChanged,
  super.key,
  this.size,
  this.activeColor,
  this.inactiveColor,
});