FLutter Wiget Testing

how to test this function
checkSetState() {
String value = “sa”;
setState(() {
value = “santosh”;
});
return value;
}
in widget testing if it is inside of StatefulWidget