dart_super 1.4.5 copy "dart_super: ^1.4.5" to clipboard
dart_super: ^1.4.5 copied to clipboard

Reactive state management framework for scalable dart applications.

example/lib/main.dart

// ignore_for_file: avoid_print
import 'package:dart_super/dart_super.dart';

void main() {
  Super.activate(); // Activate the Super framework

  // Declare a state object
  final count = 0.rx;

  // The method used in the addListener method will be called
  // every time the state changes.
  rxWatch(() => print(count.state), stopWhen: () => count.state > 3);

  // Increment the state
  count.state++; // prints '1'
  count.state++; // prints '2'
  count.state++; // prints '3'
  count.state++; // doesn't print
}
3
likes
140
pub points
17%
popularity
screenshot

Publisher

verified publisherdrdejavu.ng

Reactive state management framework for scalable dart applications.

Repository (GitHub)
View/report issues

Topics

#rx #state #reactive

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on dart_super