Potential wrong arguments in AsyncSnapshotExt
felipeddev opened this issue · comments
Felipe Duarte Silva commented
In AsyncSnapshotExt on the method R when<R>
. The error callback is using itself as value for Object error
param.
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).
Felipe Duarte Silva commented
I opened a PR for this issue: #28 (comment)