LogDropCrashTracker class

Records uncaught Flutter and Dart errors without taking the error hooks away from the app or from other crash reporters (for example Firebase Crashlytics).

The handlers that were installed before init keep running after LogDrop records the error. A handler installed after init that does not chain to its predecessor (Crashlytics does not) is wrapped once after the first frame, so the documented order (LogDropFlutter.init() before Firebase.initializeApp()) keeps both reporters working.

Constructors

LogDropCrashTracker()
factory

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

init() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reattachIfReplaced() → void
Wraps handlers that replaced LogDrop's after init so LogDrop keeps recording and the replacing handler keeps running (with its return value).
resetForTesting() → void
Forgets LogDrop's handler state so tests can install them again.
toString() → String
A string representation of this object.
inherited

Operators

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