flutetr stateful builder code example
Example: statefulbuilder example flutter
StatefulBuilder(builder: (BuildContext context, StateSetter setState) => Checkbox( value: isChecked, onChanged: (value) { setState(() { isChecked = value; }); },),),