YmCheckButton constructor

YmCheckButton({
  1. required int value,
  2. required dynamic onChanged(
    1. bool checked,
    2. dynamic value
    ),
  3. bool checked = false,
  4. String text = "",
  5. Size size = const Size(80, 40),
  6. double fontSize = 14,
  7. Color textColor = const Color(0xff333333),
  8. String image = "assets/images/ic_box.png",
  9. String checkedImage = "assets/images/ic_box_checked.png",
})

Implementation

YmCheckButton({
  required this.value,
  required this.onChanged,
  this.checked = false,
  this.text = "",
  this.size = const Size(80, 40),
  this.fontSize = 14,
  this.textColor = const Color(0xff333333),
  this.image = "assets/images/ic_box.png",
  this.checkedImage = "assets/images/ic_box_checked.png",
});