10 lines
343 B
Dart
10 lines
343 B
Dart
import 'package:satu/core/redux/actions/sell_actions.dart';
|
|
import 'package:satu/core/redux/state/sell_state.dart';
|
|
|
|
SellState sellReducer(SellState prevState, SetSellStateAction action) {
|
|
final SellState payload = action.sellState;
|
|
return prevState.copyWith(
|
|
items: payload.items,
|
|
transactionState: payload.transactionState
|
|
);
|
|
} |