Crashlytics class

The entry point for accessing Crashlytics.

You can get an instance by calling Crashlytics.instance.

Constructors

Crashlytics()

Properties

enableInDevMode bool
Set to true to have errors sent to Crashlytics while in debug mode. By default this is false.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

crash() → void
getStackTraceElements(List<String> lines) List<Map<String, String>>
getVersion() Future<String>
Returns Crashlytics SDK version.
isDebuggable() Future<bool>
Reports the global value for debug mode. TODO(kroikie): Clarify what this means in context of both Android and iOS.
log(String msg) → void
Add text logging that will be sent with your next report. msg will be printed to the console when in debug mode. Each report has a rolling max of 64k of logs, older logs are removed to allow newer logs to fit within the limit.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
recordError(dynamic exception, StackTrace stack, {dynamic context}) Future<void>
Submits a report of a non-fatal error. [...]
recordFlutterError(FlutterErrorDetails details) Future<void>
Submits report of a non-fatal error caught by the Flutter framework. to Firebase Crashlytics.
setBool(String key, bool value) → void
Sets a value to be associated with a given key for your crash data.
setDouble(String key, double value) → void
Sets a value to be associated with a given key for your crash data.
setInt(String key, int value) → void
Sets a value to be associated with a given key for your crash data.
setString(String key, String value) → void
Sets a value to be associated with a given key for your crash data.
setUserEmail(String email) Future<void>
Optionally set a end-user's name or username for display within the Crashlytics UI. Please be mindful of end-user's privacy.
setUserIdentifier(String identifier) Future<void>
Specify a user identifier which will be visible in the Crashlytics UI. Please be mindful of end-user's privacy.
setUserName(String name) Future<void>
Specify a user name which will be visible in the Crashlytics UI. Please be mindful of end-user's privacy.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

instance Crashlytics
final

Constants

channel → const MethodChannel
MethodChannel('plugins.flutter.io/firebase_crashlytics')