observable_ish 4.0.4 observable_ish: ^4.0.4 copied to clipboard
Write elegant reactive cross-platform client side application using observable states and event emitters.
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;
}