crashEvent static method
Future<void>
crashEvent({
- String name = 'Flutter crash',
- Object? exception,
- StackTrace? stackTrace,
Report a crash to Fullstory for display in playback.
exception
and stackTrace
are optional, but if provided, they will be
included in the event.
Once called, Fullstory capture will halt, since this assumes the app has fatally exited.
Implementation
static Future<void> crashEvent({
String name = 'Flutter crash',
Object? exception,
StackTrace? stackTrace,
}) =>
FullstoryFlutterPlatform.instance.captureEvent({
// This event type is assigned to crash events in host SDKs
'eventType': _EventType.crash.value,
'name': name,
'frames': <String>[
if (exception != null) exception.toString(),
if (stackTrace != null) stackTrace.toString(),
],
});