YmCheckButton constructor
YmCheckButton({
- required int value,
- required dynamic onChanged(
- bool checked,
- dynamic value
- bool checked = false,
- String text = "",
- Size size = const Size(80, 40),
- double fontSize = 14,
- Color textColor = const Color(0xff333333),
- String image = "assets/images/ic_box.png",
- 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",
});