R3State Management- IntermediateValueNotifier (SDK-Only)GetX (Reactive State)CP01: PARITY VERIFIED
CP01: Shopping Cart State — ValueNotifier vs GetX
A neutral behavioral comparison of SDK-only ValueNotifier against GetX reactive state management
Implementation Switcher
Toggle between the two implementations. Runs exactly one isolated Flutter preview at a time.
Preview Controls
Neutral Contract (6 Rules)
- ✓Integer minor units (cents) for exact currency math
- ✓Optimistic updates with monotonic sequence tokens
- ✓Stock bound clamping (min 1, max stockLimit)
- ✓Server failure rollback to prior quantity
- ✓Undoable item removal to exact original index
- ✓Explicit lifecycle disposal without leaks
Loading ValueNotifier (SDK-Only) preview...
Flutter 3.24.3 • ValueNotifier (SDK-Only) • 390px width • Single-preview active