process_value 0.1.2+3 copy "process_value: ^0.1.2+3" to clipboard
process_value: ^0.1.2+3 copied to clipboard

A declarative representation of a process

Process Value #

License: MIT

A declarative representation of a process. Meant to treat a process declaratively, as a stream of values. This concept is similar to AsyncValue from Riverpod but with a much more stripped-down implementation.

Installation 💻 #

❗ In order to start using Process Value you must have the Dart SDK installed on your machine.

Add process_value to your pubspec.yaml:

dependencies:
  process_value:

Install it:

dart pub get

Usage #

Stream<ProcessValue<int>> loadMyInteger() async* {
  yield ProcessValue.loading(0);
  await Future.delayed(const Duration(seconds: 1));
  yield ProcessValue.loading(0.5);
  await Future.delayed(const Duration(seconds: 1));
  yield ProcessValue.loading(0.5);
  yield ProcessValue.data(42);
}
1
likes
120
pub points
1%
popularity

Publisher

verified publisherwhynotmake.it

A declarative representation of a process

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on process_value