DFCheckButton constructor

DFCheckButton({
  1. required int value,
  2. required dynamic onChanged(
    1. DFCheckButton button,
    2. bool checked,
    3. int value
    ),
  3. required String image,
  4. required String checkedImage,
  5. String? text,
  6. double fontSize = 14,
  7. Color textColor = const Color(0xFFFFFFFF),
  8. FontWeight fontWeight = FontWeight.normal,
  9. Size size = const Size(80, 80),
})

Implementation

DFCheckButton({
  required this.value,
  required this.onChanged,
  required this.image,
  required this.checkedImage,
  this.text,
  this.fontSize = 14,
  this.textColor = const Color(0xFFFFFFFF),
  this.fontWeight = FontWeight.normal,
  this.size = const Size(80, 80),
});