1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
thesis_shop/lib/redux/reducers/user_reducer.dart

15 lines
363 B

import 'package:redux/redux.dart';
import 'package:thesis_shop/redux/actions/actions.dart';
final userReducer = combineReducers<bool>([
TypedReducer<bool, SingInAction>(_signIn),
TypedReducer<bool, SignOutAction>(_signOut)
]);
bool _signIn(bool old, SingInAction action) {
return true;
}
bool _signOut(bool old, SignOutAction action) {
return false;
}