CheckBoxList constructor

CheckBoxList({
  1. Key? key,
  2. required List<CheckBoxItem> items,
  3. required void onChange(
    1. List<CheckBoxItem> items
    ),
  4. String title = "Select All",
  5. Color? unselectedColor,
  6. Color? selectedColor,
  7. TextStyle? titleStyle,
  8. int columnCount = 1,
})

Implementation

CheckBoxList(
    {super.key,
    required this.items,
    required this.onChange,
    this.title = "Select All",
    Color? unselectedColor,
    Color? selectedColor,
    TextStyle? titleStyle,
    this.columnCount = 1})
    : titleStyle = titleStyle ?? Get.find<AppFonts>().S(),
      unselectedColor = unselectedColor ?? Get.find<AppColors>().textColor,
      selectedColor = selectedColor ?? const Color(0xFF6200EE);