DVCrashReporting class
The crash reporter.
Constructors
-
DVCrashReporting({required DVCrashStore store, DVCrashSink? sink, required DVCrashContext context(), int breadcrumbs = 64, Set<
String> sensitiveFields = const <String>{}, double nonFatalSampleRate = 1, double random()?, int fullReportsPerRelease = 5, DVReleaseHealth? health, DVCrashSymbols? symbols, bool enabled = true, DateTime clock()?, Map<String, Object?> flags()?, void onDiagnostic(String code, String message)?})
Properties
-
final
- enabled → bool
-
Whether reports are captured at all. Off is a declaration the build
reports (
DV-CRASH-009), never an accident.final - fullReportsPerRelease → int
-
Full reports per device per release; past it crashes are counted, not
written.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- health → DVReleaseHealth?
-
final
- nonFatalSampleRate → double
-
The share of non-fatal errors kept. Crashes are never sampled: the
hundredth occurrence is the one that says it is not rare.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sink → DVCrashSink?
-
final
- store → DVCrashStore
-
final
- symbols → DVCrashSymbols?
-
final
Methods
-
install(
) → void - Installs what this build can capture.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
Object error, StackTrace stack, {bool fatal = false}) → DVCrashReport? -
Records
error, writing it before returning. -
recordHang(
StackTrace stack, Duration blockedFor) → DVCrashReport? -
Records a hang: the platform thread did not answer for
blockedFor, andstackis where it was. -
recoverAndSend(
) → Future< int> - Sends what earlier runs left, and returns how many were sent.
-
runGuarded<
R> (R body()) → R? -
Runs
bodywith its uncaught errors recorded as crashes. -
startSession(
String sessionId) → void - Starts a session, which is what release health's denominator counts.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited