call setState from then in flutter code example Example: setstate flutter setState(() { _myState = newValue; });