Flutter How to refresh StreamBuilder?
问题 Consider the following code: StreamBuilder<QuerySnapshot> _createDataStream(){ return StreamBuilder<QuerySnapshot>( stream: Firestore.instance.collection("data").limit.(_myLimit).snapshots(), builder: (context, snapshot){ return Text(_myLimit.toString); } ); } I want that the StreamBuilder refreshes when the _myLimit Variable changes. It's possible doing it like this: void _incrementLimit(){ setState(() =>_myLimit++); } My Question is if there is another, faster way, except the setState((){})