app/helpers/app_errorhandling_init library

Properties

earlyErrorBufferLengthForTest int
Test-only access to the current buffered-error count (Issue 16/82).
no setter
errorReportingConfig ErrorReportingConfig
Get the current error reporting configuration
no setter

Functions

appInitErrorHandling() Future<void>
bufferEarlyErrorForTest(Object error, [StackTrace? stackTrace]) → void
Test-only seam to push an error into the buffer as the early handlers would, so the bounded-buffer / flush tests do not need to drive real FlutterError.onError (Issue 16/82).
configureErrorReporting(ErrorReportingConfig config) → void
Configure error reporting before calling appInitErrorHandling()
installEarlyErrorHandlers() → void
Installs synchronous, dependency-free error handlers that BUFFER caught errors into a bounded module-level list until the reporter attaches.
resetEarlyErrorHandlersForTest() → void
Resets the early-error buffer state for tests. The buffer and the installed-flag are module-level statics that persist across test cases in one VM, so without a reset the buffer/flush assertions become order- dependent (Issue 63).
resetIsolateErrorListenerFlag() → void
Resets the isolate error-listener apply-once flag (Issue 31/63) so the "added at most once across retries" assertion is order-independent. Internal test-support seam invoked only by the combined resetDreamicBootstrapIdempotencyForTest() (the documented @visibleForTesting entry point) — not @visibleForTesting itself so the combined reset can call it without a cross-file visibility-lint warning.