built_redux
8.0.11, released 2 months ago by workiva.com
A state management library written in dart that enforces immutability
WASM-ready
What it does
built_redux is an implementation of Redux and a framework for building middleware and reducers in a type safe manner. It uses built_value for immutable models and relies on code generation to create actions and boilerplates.
AI-written summary of version 8.0.11, based on the package's README and metadata. Report an inaccuracy
Use it when
- You prefer the Redux architecture pattern for state management.
- You are already using built_value for your immutable data models.
Skip it when
- You want a lightweight state management solution without code generation.
- You prefer modern state management solutions like Riverpod or Bloc.
Strengths
- Enforces strict immutability using built_value.
- Type-safe actions, reducers, and middleware.
- Comprehensive ecosystem with support for thunks, rx, and repatch.
Weaknesses
- Requires code generation (build_runner) setup.
- High boilerplate compared to newer state management libraries.
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 6
Requires setting up build_runner and code generation alongside built_value and analyzer dependencies.
not documentedAlternatives
Packages that do the same job and could replace built_redux.
Works with
Packages commonly used together with built_redux: ones it builds on, ones built on it, and its own family.
- analyzerbuilt_redux depends on itPerforms static analysis of Dart code for tool integration and embedding.
- built_valuebuilt_redux depends on itImmutable value types with builders, enum classes and JSON serialization for Dart.
- testbuilt_redux depends on itA full featured library for writing and running Dart tests across platforms.
- built_collectionbuilt_redux depends on itImmutable collections based on SDK collections with builder pattern.
- buildbuilt_redux depends on itPackage for authoring build_runner compatible code generators.
- source_genbuilt_redux depends on itSource code generation builders and utilities for the Dart build system.
- build_runnerUsed togetherA build system for Dart code generation and modular compilation.