dart_super 1.2.9-dev.1 dart_super: ^1.2.9-dev.1 copied to clipboard
Reactive state management framework for scalable dart applications.
// ignore_for_file: avoid_print
import 'package:dart_super/dart_super.dart';
void main(List<String> args) {
Super.activate();
// Declare a state object
final count = 0.rx;
// The method used in the addListener method will be called
// every time the state changes.
count.addListener(() => print(count.state));
// Increment the state
count.state++; // prints '1'
}