UCrashlytics class

Catches every uncaught Dart/Flutter error with app, device and screen info, so you can send it to your server. UCrashlytics.initialize(onCrash: (report) => api.logCrash(report))

Constructors

UCrashlytics()

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

initialize({UCrashListener? onCrash}) → Future<void>
Starts catching errors; previous handlers (console, other reporters) keep working. Call it in main() after initU().
reportError(dynamic error, StackTrace stackTrace) → void
Reports an error you caught yourself. catch (e, s) { UCrashlytics.reportError(e, s); }