0 purchases
dart publisher
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;
}
copied to clipboard
output
2
----
3
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.