observable_ish 6.0.4 copy "observable_ish: ^6.0.4" to clipboard
observable_ish: ^6.0.4 copied to clipboard

Write elegant reactive cross-platform client side application using observable states and event emitters.

example/example.dart

import 'package:observable_ish/observable_ish.dart';

void main() async {
  final rxInts = RxValue<int>(5);
  print(rxInts.value); // => 5
  rxInts.value = 10;
  rxInts.value = 15;
  rxInts.values.listen((int v) => print('value: $v')); // => 15, 20, 25
  await Future.delayed(Duration(milliseconds: 50));
  rxInts.value = 20;
  rxInts.value = 25;
}
63
likes
150
pub points
91%
popularity

Publisher

unverified uploader

Write elegant reactive cross-platform client side application using observable states and event emitters.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection

More

Packages that depend on observable_ish