handleRunZoneGuardedError method

Future<void> handleRunZoneGuardedError(
  1. Object error,
  2. StackTrace stackTrace
)

Implementation

Future<void> handleRunZoneGuardedError(
  Object error,
  StackTrace stackTrace,
) async {
  final formatted = 'Unhandled Exception: $error\n$stackTrace';

  await _saveCrash(
    threadName: Isolate.current.debugName ?? 'main',
    stackTrace: formatted,
    crashType: error.runtimeType.toString(),
  );
}