flutter update alertdialog from outside code example
Example: flutter how to setstate over alertdialog
showDialog(
context: context,
builder: (context) {
String contentText = "Content of Dialog";
return StatefulBuilder(
builder: (context, setState) {
return AlertDialog(blah blah blah....)})})