flutter setstate when future code example Example: setstate flutter setState(() { _myState = newValue; });