JuiSwitch constructor

const JuiSwitch({
  1. Key? key,
  2. required Widget title,
  3. required bool value,
  4. required ValueChanged<bool> onChanged,
  5. Color color = const Color(0xFFF2F2F2),
  6. Color backgroundColorOff = const Color(0xFFBDBDBD),
  7. Color backgroundColorOn = JuiColors.primaryColor,
})

Implementation

const JuiSwitch({
  Key? key,
  required this.title,
  required this.value,
  required this.onChanged,
  this.color = const Color(0xFFF2F2F2),
  this.backgroundColorOff = const Color(0xFFBDBDBD),
  this.backgroundColorOn = JuiColors.primaryColor,
}) : super(key: key);