handleUncaughtException method

  1. @override
void handleUncaughtException(
  1. Object error, [
  2. StackTrace? trace,
  3. String? reason
])

Forwards an error and trace to the user's error handler.

This is expected to be provided by the current application.

Implementation

@override
void handleUncaughtException(
  Object error, [
  StackTrace? trace,
  String? reason,
]) {
  _exceptionHandler.call(error, trace, reason);
}