flutter_stream_listener

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter stream listener

flutter_stream_listener #





Flutter package the helps manage streams and subscriptions. Built in order to reduce the complexity of having to manually subscribe to streams and cancel subscriptions.
StreamListener #
A Widget which manages a Subscription to a Stream and exposes callbacks: onData, onError, and onDone.
StreamListener<int>(
stream: Stream.fromIterable([0, 1, 2, 3]), // Stream being subscribed to
onData: (data) {
// React to the emitted data
},
onError: (error, stackTrace) {
// Optionally handle errors in the Stream
},
onDone: () {
// Optionally react to when the Stream is closed
},
cancelOnError: true, // Defaults to false
child: const SizedBox(),
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.