stream_live_data

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

stream live data

STREAM TO LIVE DATA #
Flutter Streams wrapped for easy use.
Getting Started #
Add Dependency
Add below dependency in pubspec.yaml.
dependencies:
stream_live_data: ^0.0.2
copied to clipboard

Initialize LiveStream Instance
You can create instance as below.

LiveData<String> liveData = LiveData<String>();
copied to clipboard
*Subscribe to changes
Register to LiveData changes
LiveDataToken token = liveData.register((event) {
print("Rvent Received: $event");
});
copied to clipboard
*Update Live Data Value
liveData.add(newValue);
copied to clipboard
*Clean up
Don't forget to unregister when done
liveData.unRegister(token);
or
token.cancel();
copied to clipboard
Enjoy.

License

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

Files:

Customer Reviews

There are no reviews.