stream_live_data 0.0.19 copy "stream_live_data: ^0.0.19" to clipboard
stream_live_data: ^0.0.19 copied to clipboard

Flutter stream made easy

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
  • Initialize LiveStream Instance You can create instance as below.
    LiveData<String> liveData = LiveData<String>();

*Subscribe to changes Register to LiveData changes

    LiveDataToken token = liveData.register((event) {
      print("Rvent Received: $event");
    });

*Update Live Data Value

  liveData.add(newValue);

*Clean up Don't forget to unregister when done

  liveData.unRegister(token);
or
  token.cancel();

Enjoy.

5
likes
120
points
71
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter stream made easy

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on stream_live_data