jayeshpansheriya / awesome_extensions

An extension to the widget that helps to reduce the boilerplate and adds some helpful methods. and you can make responsive design.

Home Page:https://pub.dev/packages/awesome_extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential wrong arguments in AsyncSnapshotExt

felipeddev opened this issue · comments

In AsyncSnapshotExt on the method R when<R>. The error callback is using itself as value for Object error param.

Screenshot 2024-03-07 at 18 18 49

In this screenshot, shows that the AsyncSnapshot indeed has an error value (ServerFailure), but the error returned from R Function(Object error, StackTrace? stackTrace) error callback is a closure (the function itself).

I opened a PR for this issue: #28 (comment)