OnError typedef
OnError =
void Function(Object error, StackTrace stackTrace)
The onError
function is used both to handle asynchronous errors by overriding ZoneSpecification.handleUncaughtError in zoneSpecification
, if any, and to handle errors thrown synchronously by the call to body
.
Implementation
typedef OnError = void Function(Object error, StackTrace stackTrace);