Generic Widget for listening Streams in Flutter
Advertisements I would like to create a StatefulWidget which I’ll use all over the app for listening streams of different types. Since I try to keep all the widgets Stateless I wanted to extract this functionality. I’ve created this: class StreamListener<T> extends StatefulWidget { const StreamListener({ Key? key, required this.stream, required this.onNewData, required this.child, })… Read More Generic Widget for listening Streams in Flutter