You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second type parameter provides Type information about what kind of "ViewModel" you're extracting from the Store and passing to the builder function. If you didn't provide the second type, it would have to be dynamic or Object, which means you wouldn't have the proper type information in the builder function, nor would you have any type checking to ensure the converter function returns a value of the Type you expect.
If you want to pass through just the state of the Store, it's not the approach I would take, but there's nothing stopping you from doing it.
Generally I use the converter to gather all the data I need for the builder function, so I don't need to do any work inside the builder function other than create a Widget with the values I've extracted inside the converter.
I found this on the example
flutter_redux/example/counter/lib/main.dart
Line 70 in dfc42c3
1. Is there any performance Issue if I change the second Type Parameter from String to Int ?
2. Because I have another flutter-redux example that looks like this
then I changed it to this
The text was updated successfully, but these errors were encountered: