fast_rx 0.0.3 fast_rx: ^0.0.3 copied to clipboard
An easy to understand reactive state management solution for Flutter
fast_rx is a reactive state management solution for Flutter
Inspired by GetX, observable_ish, and similar packages
Features #
Class | Use-case |
---|---|
FastBuilder | Rebuilds when reactive values within change |
RxValue | A reactive value |
RxList | A reactive list |
RxMap | A reactive map |
RxSet | A reactive set |
There are convenience typedefs for RxBool, RxInt, RxDouble, and RxString
Usage #
import 'package:fast_rx/fast_rx.dart';
...
final count = 0.rx;
...
count.stream.listen((value) => print(value));
...
FastBuilder(() => Text('$count'));
...
// Will print the value and trigger a rebuild of the FastBuilder
count.value = 1;
Additional information #
See fast_ui for more information