BugReportBindings class

Application bootstrap for error reporting.

Wires global error sources to your reporting pipeline:

Usage:

await BugReportBindings.runAppWithReporting(
  app: () => const MyApp(),
  config: ClientConfig(
    environment: kReleaseMode ? 'prod' : 'dev',
    baseProviders: [AppContextProvider(), DeviceContextProvider()],
    reporters: [ /* Composite/Console/Sentry adapters at app layer */ ],
  ),
);

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

runAppWithReporting({required Widget app(), required ClientConfig config, bool captureFrameworkErrors = true, bool capturePlatformDispatcherErrors = true, bool attachIsolateErrorListener = true, bool useDefaultFlutterErrorPresentation = true}) Future<void>
Bootstraps the app and reporting system.