What is wrong with this Dart error handler?

}).catchError((Exception error) {

has to be

}).catchError((Object error) {

You can’t limit to Exception here. Dart can throw all kinds of values.

Share and Enjoy !

0Shares
0 0