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(
    {Key? key,
    required this.items,
    required this.onChange,
    this.title = "Select All",
    this.unselectedColor,
    this.selectedColor,
    this.titleStyle,
    this.columnCount = 1})
    : super(key: key) {
  titleStyle ??= Get.find<AppFonts>().M();
  unselectedColor ??= Get.find<AppColors>().textColor;
  selectedColor ??= const Color(0xFF6200EE);
}