AnalyticsPlugin class final

The default implementation for an Analytics Plugin.

Inheritance
Implemented types
Mixed-in types
Available extensions

Constructors

AnalyticsPlugin({required List<AnalyticsProvider> providers})
Creates a new AnalyticsPlugin.

Properties

description String
The description of the provider.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
observers List<NavigatorObserver>
The list of observers for the provider. These are added to the navigator, as part of the router setup.
no setteroverride
providers List<AnalyticsProvider>
The list of providers for the plugin.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
finalinherited

Methods

dispose() Future<void>
override
init() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reportError(dynamic exception, {StackTrace? stackTrace, Map<String, dynamic>? params, bool fatal = false}) Future<void>
Reports an error with an optional stack trace and parameters.
override
reportEvent(String name, {Map<String, dynamic>? params}) Future<void>
Reports an event with a specific name and optional parameters.
override
reportFlutterError(FlutterErrorDetails details, {bool fatal = false}) Future<void>
Reports a Flutter error with optional parameters.
override
reportMessage(String message, {Map<String, dynamic>? params}) Future<void>
Reports a message with optional parameters.
override
runWithTrace<T>({required String name, required String operation, required FutureOr<T?> fn(AnalyticsTrace? parentTrace), AnalyticsTrace? parentTrace}) Future<T?>
Runs a function with a trace. This is useful for wrapping functions that need to be traced. It can also be part of a nested trace, using the parentTrace parameter.
startTrace(String name, String operation) Future<AnalyticsTrace>
Starts a trace with a specific name and operation.
override
toString() String
A string representation of this object.
inherited

Operators

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