stream_live_data

Creator: coderz1093

Last updated:

0 purchases

stream_live_data Image
stream_live_data Images

Languages

Categories

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 In This Product:

Customer Reviews

There are no reviews.