dart_publisher

This package aims to reproduce Swift's @Published functionality.
This package was developed by a Japanese information science students. So please understand that the English in this document may be poor!
(Please point out any oddities. It's good study of English!)

What this package can do

  • Detecting changes in the value of a variable.

Example

source

void main(List<String> arguments) {
  Publisher<int> a = Publisher<int>(1);

  a.sink((newValue) {
    print(newValue);
  });

  a.value = 2;

  print("----");

  a.value = 3;
}

output

2
----
3

Libraries

dart_publisher