flutter_redux icon indicating copy to clipboard operation
flutter_redux copied to clipboard

Request to enhance the documentation

Open dilipagheda opened this issue 6 years ago • 1 comments

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

dilipagheda avatar May 17 '19 03:05 dilipagheda

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);

simonh1000 avatar Jul 26 '19 16:07 simonh1000