recordFlutterError method
Submits a Crashlytics report of an error caught by the Flutter framework.
Use fatal
to indicate whether the error is a fatal or not.
Implementation
Future<void> recordFlutterError(FlutterErrorDetails flutterErrorDetails,
{bool fatal = false}) {
FlutterError.presentError(flutterErrorDetails);
final information = flutterErrorDetails.informationCollector?.call() ?? [];
return recordError(
flutterErrorDetails.exceptionAsString(),
flutterErrorDetails.stack,
reason: flutterErrorDetails.context
?.toStringDeep(minLevel: DiagnosticLevel.info)
.trim(),
information: information,
printDetails: false,
fatal: fatal,
);
}