flutter_redux
flutter_redux copied to clipboard
Request to enhance the documentation
Hello, I am trying to use redux in my project and going through documentation. One thing I found bit confusing is to understand the method signatures and what each parameter do and how it is used. I was wondering if it can be added in the documentation. Thanks Dilip
And I'm struggling to work out how to write a reducer that updates a part of a (immutable) state. For example, this is not enough just to update the filters part of the state:
class AppState {
final List<Resto> restos;
final Filters filters;
AppState({@required this.restos, @required this.filters});
factory AppState.setFilters(filters) => AppState(filters: filters);