reportError method
Future<void>
reportError(
- dynamic ex,
- StackTrace stack, {
- String? message,
- String? library,
- InformationCollector? informationCollector,
Report the error in an isolate or in a run zone.
Implementation
Future<void> reportError(
dynamic ex,
StackTrace stack, {
String? message,
String? library,
InformationCollector? informationCollector,
}) async {
if (_errorReport == null) {
message ??= 'while attempting to run your app';
library ??= 'Your app';
_debugReportException(
ErrorSummary(message),
ex,
stack,
library: library,
informationCollector: informationCollector,
);
} else {
await _errorReport!(ex, stack);
}
}