Line data Source code
1 : import 'package:redux/redux.dart';
2 :
3 : import '../../../actions.dart';
4 : import '../../../types.dart';
5 : import '../../navigation/models/problem_page_data.dart';
6 :
7 : class RemoveProblemReducer<T extends RedFireState>
8 : extends TypedReducer<T, RemoveProblemAction> {
9 1 : RemoveProblemReducer()
10 3 : : super((state, action) => (state as dynamic).copyWith(
11 3 : problems: state.problems.remove(action.info),
12 4 : pages: state.pages.remove(ProblemPageData(action.info))) as T);
13 : }
|