CustomSwitch constructor

const CustomSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
})

Implementation

const CustomSwitch({Key? key, required this.value, required this.onChanged})
    : super(key: key);