solidart 1.5.4 copy "solidart: ^1.5.4" to clipboard
solidart: ^1.5.4 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);
}
63
likes
160
points
567
downloads

Publisher

verified publishermariuti.com

Weekly Downloads

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