solidart 2.0.0-dev.3 copy "solidart: ^2.0.0-dev.3" to clipboard
solidart: ^2.0.0-dev.3 copied to clipboard

A simple State Management solution for Dart applications inspired by SolidJS

example/main.dart

// ignore_for_file: avoid_print

import 'dart:async';

import 'package:solidart/solidart.dart';

Future<void> main() async {
  final count = Signal(0);
  final doubleCount = Computed(() => count() * 2);

  Effect((dispose) {
    print('The counter is now: ${count()}');
    print('The double counter is now: ${doubleCount()}');
  });

  count
    ..set(1)
    ..set(2);
}
60
likes
160
pub points
59%
popularity

Publisher

verified publishermariuti.com

A simple State Management solution for Dart applications inspired by SolidJS

Repository (GitHub)
View/report issues

Topics

#state-management #signals

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

collection, meta

More

Packages that depend on solidart