final Reducer eventFilterReducer = combineReducers([
addFilterReducer <--"The element type '(List<ZEventFilter>, dynamic= -> List<ZEventFilter>' can't be assigned to the list type '(dynamic, dynamic) -> dynamic'" ,
]);
List<ZEventFilter> addFilterReducer (List<ZEventFilter> eventFilters, AddEventFilterAction action){
return List.from(eventFilters)..add(action.eventFilter);
}
First of all, thank you for this libary !
So when I combine reducers in IntelliJ (AndroidStudio), this happnens:
This works fine:
This lints a typecast error.
Must be the linter, not the libary right?
Best regards, Daniel