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 underdartvel.crashes.identityis granted inconsent. Null signs out. -
install(
DVCrashReporting reporter, {bool platformHooks = true, String? sessionId}) → DVCrashInstallation -
Installs
reporterinto 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
appIdatrelease: 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
erroras non-fatal: the only kind that is sampled. -
runGuarded<
R> (R body()) → R? -
Runs
bodywith 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 testrun, 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
appIdare kept in on this platform: files in the per-user data directory, orlocalStorageon the web. Null when the platform gives nowhere that survives a restart.