backup. before shop update
This commit is contained in:
13
lib/store/reducer/cart_info_reducer.dart
Normal file
13
lib/store/reducer/cart_info_reducer.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
import '../../models/cart_info.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
|
||||
import '../actions.dart';
|
||||
|
||||
final cartInfoReducer = combineReducers<List<CartInfo>>([
|
||||
TypedReducer<List<CartInfo>, UpdateCartInfo>(_updateCartInfo)
|
||||
]);
|
||||
|
||||
List<CartInfo> _updateCartInfo(List<CartInfo> cartInfos, action) {
|
||||
return action.cartInfos;
|
||||
}
|
||||
Reference in New Issue
Block a user