recordError method
Future<void>
recordError({
- required String exception,
- required String information,
- required String reason,
- List<
Map< ? stackTraceElements,String, String> >
override
Submits a Crashlytics report of a caught error.
Implementation
@override
Future<void> recordError({
required String exception,
required String information,
required String reason,
List<Map<String, String>>? stackTraceElements,
}) async {
try {
await channel
.invokeMethod<void>('Crashlytics#recordError', <String, dynamic>{
'exception': exception,
'information': information,
'reason': reason,
'stackTraceElements': stackTraceElements ?? [],
});
} on PlatformException catch (e, s) {
throw platformExceptionToFirebaseException(e, s);
}
}