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