I'm trying to understand how a checkbox works in flutter and not able to understand how the value of isChecked changes from false to true in the below code.
i.e where did we specify that isChecked= true?
bool isChecked = false;
Checkbox(
value: isChecked,
onChanged: (bool value) {
setState(() {
isChecked = value;
print(isChecked) // How did value change to true at this point?
});
},
),