phase3: null-safe store/ (AppState fields + reducers nullable)

This commit is contained in:
2026-07-24 13:31:34 +08:00
parent 4f9aa4f683
commit cef00db911
11 changed files with 42 additions and 42 deletions

View File

@@ -4,10 +4,10 @@ import 'package:redux/redux.dart';
import '../actions.dart';
final cartInfoReducer = combineReducers<List<CartInfo>>([
TypedReducer<List<CartInfo>, UpdateCartInfo>(_updateCartInfo)
final cartInfoReducer = combineReducers<List<CartInfo>?>([
TypedReducer<List<CartInfo>?, UpdateCartInfo>(_updateCartInfo)
]);
List<CartInfo> _updateCartInfo(List<CartInfo> cartInfos, action) {
List<CartInfo>? _updateCartInfo(List<CartInfo>? cartInfos, action) {
return action.cartInfos;
}