CheckBoxSingle constructor

CheckBoxSingle({
  1. Key? key,
  2. required CheckBoxItem item,
  3. required void onChanged(
    1. bool value
    ),
  4. Color? unselectedColor,
  5. Color? selectedColor,
})

Implementation

CheckBoxSingle({
  super.key,
  required this.item,
  required this.onChanged,
  Color? unselectedColor,
  Color? selectedColor,
})  : unselectedColor = unselectedColor ?? Get.find<AppColors>().textColor,
      selectedColor = selectedColor ?? const Color(0xFF6200EE);