myCheckBox method
Implementation
Widget myCheckBox(String label, bool isChecked, void Function() onRefresh) {
return Semantics(
label: label,
child: Checkbox(
value: isChecked,
onChanged: (value) {
bool newValue = value ?? false;
isChecked=newValue;
onRefresh();
},
checkColor: Colors.green,
fillColor: WidgetStateProperty.resolveWith((states)=>Colors.blue),
semanticLabel: label,
),
);
}