errorHandler property

void Function(dynamic error, StackTrace? stack) errorHandler

An utility error handling function that will send reported errors to Bugsnag as unhandled. The errorHandler is suitable for use with common Dart error callbacks such as runZonedGuarded or Future.onError.

Implementation

void Function(dynamic error, StackTrace? stack) get errorHandler;