DVCrashes class final

DV.Crashes.

Constructors

DVCrashes()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
installation → DVCrashInstallation?
The installation in this process, or null before one.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

identify(String? userId, {required DVConsent consent}) → void
Ties this install's reports to userId, for as long as the consent category the application declared under dartvel.crashes.identity is granted in consent. Null signs out.
install(DVCrashReporting reporter, {bool platformHooks = true, String? sessionId}) → DVCrashInstallation
Installs reporter into Flutter's error hooks and sends what earlier runs left.
installApplication({required String appId, required String release, DVCrashStore? store, DVCrashSink? sink, String? installId, DVConsentCategory? identityConsent, DVCrashConfig config = const DVCrashConfig(), void onDiagnostic(String code, String message)?, Uri api(String path)?, bool evenUnderTest = false}) → DVCrashInstallation?
Installs crash reporting for the application appId at release: what the generated runtime calls at startup.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(Object error, [StackTrace? stack]) → DVCrashReport?
Records a caught error as non-fatal: the only kind that is sampled.
runGuarded<R>(R body()) → R?
Runs body with its uncaught errors recorded as crashes.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

hostedByTestRunner → bool
Whether this process is a flutter test run, where the test framework owns the error hooks and nothing should be written to the person's data directory.
no setter

Static Methods

defaultStore(String appId) → DVCrashStore?
The store records for appId are kept in on this platform: files in the per-user data directory, or localStorage on the web. Null when the platform gives nowhere that survives a restart.