asyncredux-state-design
Installation
SKILL.md
AsyncRedux State Design
Core Principle: Immutability
State classes must be immutable—fields cannot be modified after creation. Instead of changing state directly, you create new instances. All fields should be marked final.
Basic State Class Structure
class AppState {
final String name;
final int age;
AppState({required this.name, required this.age});
static AppState initialState() => AppState(name: "", age: 0);