API description for catchError missing what the callback can take #16004
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
docs-api
library-async
type-documentation
A request to add or improve documentation
Reported from developer:
According to https://api.dartlang.org/docs/channels/stable/latest/dart_async/Future.html#catchError
catchError(Function onError...
What is the typdef or signature for onError?
If I read the docs, I see: If the invocation returns true, onError is called with the error.
However, as of Dart 1.0, the callback can take one or two parameters:
(error)
(error, stackTrace)
Can we update the API docs for at least catchError to indicate what the callback can take?
The text was updated successfully, but these errors were encountered: