CustomSwitch constructor

const CustomSwitch(
  1. {Key key,
  2. bool value,
  3. ValueChanged<bool> onChanged,
  4. Color activeColor = Colors.green,
  5. Color baseColor = Colors.grey,
  6. Color inactiveColor = Colors.red}
)

Implementation

const CustomSwitch({
  Key key,
  this.value,
  this.onChanged,
  this.activeColor = Colors.green,
  this.baseColor = Colors.grey,
  this.inactiveColor = Colors.red,
}) : super(key: key);