handleError method

  1. @override
void handleError(
  1. Object error, {
  2. StackTrace? stackTrace,
})
override

This method have to handle of passed error and optional StackTrace.

Implementation

@override
void handleError(Object error, {StackTrace? stackTrace}) {
  debugPrint(error.toString());
  if (stackTrace != null) {
    debugPrintStack(stackTrace: stackTrace);
  }
}