SimplyticsCrashlogServiceGroup class
A class that allows you to use several error monitoring services at the same time.
Example:
Simplytics.setup(
crashlogService: SimplyticsCrashlogServiceGroup([
SimplyticsDebugCrashlogService(),
CustomCrashReportingService(),
]),
);
- Inheritance
-
- Object
- SimplyticsCrashlogInterface
- SimplyticsCrashlogServiceGroup
Constructors
-
SimplyticsCrashlogServiceGroup(List<
SimplyticsCrashlogInterface> services) - Creates an error monitoring service group, all calls to this group will be propagated to all specified service classes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEnabled → bool
-
Whether the error monitoring service collects reports.
If false, no crash reporting data is sent to the service.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
services
→ List<
SimplyticsCrashlogInterface> -
List of service classes to which all calls to this group will be propagated.
final
Methods
-
log(
String message) → Future< void> -
Logs a
message
. Typically, this message is sent with the following error report.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordError(
dynamic exception, StackTrace? stackTrace, {dynamic reason, bool fatal = false}) → Future< void> -
Logs an error Exception and a possible
stackTrace
.override -
recordFatalError(
dynamic exception, StackTrace? stackTrace, {dynamic reason}) → Future< void> -
Logs a fatal error Exception and a possible
stackTrace
.inherited -
setCustomKey(
String key, Object value) → Future< void> -
Sets a custom key for the user that usually persists through the apps lifecycle.
override
-
setEnabled(
bool enabled) → Future< void> -
Enables/disables automatic data collection using this service class.
override
-
setUserId(
String id) → Future< void> -
Sets a user
id
to associate with all error reports.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited