Closed hasimyerlikaya closed 4 years ago
would it be enough if I included TParam Value in CommandResults? Otherwise I would have to change to Type of thrownExeptions to some ErrorState object which would be a breaking change.
Frankly, I almost never felt the need to use CommandResults.
So frankly it doesn't work for me. I sent a Pull Request for an arrangement on this. If you can review that arrangement, we will not need to make this change if appropriate.
First of all I ask you to check the pull request.
Just for your information, in my new command package flutter_command I implemented your wish.
@escamoteur Thank you. I am checking flutter_command now.
I'am big fan of RxCommand. I think best state management solution is RxVMS for flutter.
My architecture of last three project is based on RXCommand. I growup my architecture with every project.
In my last project, I use AnimatedListWidget. When user tap the delete button, I sending request to the server and then I switch widget status as loading. After server responsed, I am switch widget status to normal.
When an error thrown in RxCommand, I must change widget status to normal or error. For this, I must access TParam of RxCommand in "thrownExceptions". I will take TParam object and than switch AnimatedList item with that.
Can you add TParam in thrownExceptions return value.