FirebaseCrashlytics class

The entry point for accessing a FirebaseCrashlytics.

You can get an instance by calling FirebaseCrashlytics.instance.

Inheritance
  • Object
  • PlatformInterface
  • FirebasePluginPlatform
  • FirebaseCrashlytics

Properties

app ↔ FirebaseApp
The FirebaseApp for this current FirebaseCrashlytics instance.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isCrashlyticsCollectionEnabled bool
Whether the current Crashlytics instance is collecting reports. If false, then no crash reporting data is sent to Firebase.
no setter
pluginConstants Map
Returns any plugin constants this plugin app instance has initialized.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkForUnsentReports() Future<bool>
Checks a device for any fatal or non-fatal crash reports that haven't yet been sent to Crashlytics.
crash() → void
Causes the app to crash (natively).
deleteUnsentReports() Future<void>
If automatic data collection is disabled, this method queues up all the reports on a device for deletion. Otherwise, this method is a no-op.
didCrashOnPreviousExecution() Future<bool>
Checks whether the app crashed on its previous run.
log(String message) Future<void>
Logs a message that's included in the next fatal or non-fatal report.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordError(dynamic exception, StackTrace? stack, {dynamic reason, Iterable<Object> information = const [], bool? printDetails, bool fatal = false}) Future<void>
Submits a Crashlytics report of a caught error.
recordFlutterError(FlutterErrorDetails flutterErrorDetails, {bool fatal = false}) Future<void>
Submits a Crashlytics report of an error caught by the Flutter framework. Use fatal to indicate whether the error is a fatal or not.
recordFlutterFatalError(FlutterErrorDetails flutterErrorDetails) Future<void>
Submits a Crashlytics report of a fatal error caught by the Flutter framework.
sendUnsentReports() Future<void>
If automatic data collection is disabled, this method queues up all the reports on a device to send to Crashlytics. Otherwise, this method is a no-op.
setCrashlyticsCollectionEnabled(bool enabled) Future<void>
Enables/disables automatic data collection by Crashlytics.
setCustomKey(String key, Object value) Future<void>
Sets a custom key and value that are associated with subsequent fatal and non-fatal reports.
setUserIdentifier(String identifier) Future<void>
Records a user ID (identifier) that's associated with subsequent fatal and non-fatal reports.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance FirebaseCrashlytics
Returns an instance using the default FirebaseApp.
no setter