state_forge_core 0.1.3 copy "state_forge_core: ^0.1.3" to clipboard
state_forge_core: ^0.1.3 copied to clipboard

Pure Dart state management primitives for StateForge stores, effects, persistence, observers, and testing.

state_forge_core #

Pure Dart core primitives for StateForge.

This package contains the framework-independent store engine used by the Flutter-facing state_forge package:

  • Store<S> with listener-based state updates
  • AsyncState<T> sealed variants
  • effect() streams for one-time events
  • guard(), optimistic(), and resource cleanup
  • UndoableStore, PersistableStore, and CompositedStore
  • StateForge configuration, storage, diagnostics, and observer hooks

Use this package directly when you want StateForge store logic in a pure Dart package, CLI, backend, or shared module. Flutter apps should usually depend on state_forge, which re-exports these core APIs and adds widget-tree integration.

import 'package:state_forge_core/state_forge_core.dart';

class CounterStore extends Store<int> {
  CounterStore() : super(0);

  void increment() => emit(state + 1);
}
0
likes
160
points
139
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart state management primitives for StateForge stores, effects, persistence, observers, and testing.

Repository (GitHub)
View/report issues

Topics

#dart #state-management #reactive #stores #testing

License

MIT (license)

Dependencies

meta

More

Packages that depend on state_forge_core