flutter setstate from another widget code example Example: setstate flutter setState(() { _myState = newValue; });