stream_value 0.0.5
stream_value: ^0.0.5 copied to clipboard
A simple wrap over StreamController and StreamBuilder that reduces the boilerplate to use Streams as State Management.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add stream_valueThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
stream_value: ^0.0.5Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:stream_value/core/stream_value.dart';
import 'package:stream_value/core/stream_value_builder.dart';
import 'package:stream_value/main.dart';