unified_analytics library

Classes

Analytics
CustomMetrics
A base class for custom metrics that will be defined by a unified_analytics client.
Event
FakeAnalytics
This fake instance of Analytics is intended to be used by clients of this package for testing purposes. It exposes a list sentEvents that keeps track of all events that have been sent.
LogFileStats
Data class that will be returned when analyzing the persisted log file on the client's machine.
NoOpAnalytics
An implementation that will never send events.
Survey
SurveyButton
SurveyHandler
ToolInfo

Enums

AiAgent
Enumerate options for AI agents supported.
DashEnvVar
Environment variables used by the unified analytics package.
DashTool
Officially-supported clients of this package as logical tools, grouped by user point of view. Derived directly from the PDD.

Functions

areAnalyticsSuppressed({bool defaultValue = false}) → bool
Returns true if analytics are suppressed based on the environment variable DASH__SUPPRESS_ANALYTICS.
getEnvironment({required DashTool currentTool, bool suppressAnalytics = false}) → Map<String, String>
Returns a Map of environment variables that should be included in processes that spawn a Dash sub-tool.
parseDartSDKVersion(String versionString) → String
Helper method that can be used to resolve the Dart SDK version for clients of package:unified_analytics.
topLevelTool({required DashTool current}) → DashTool
Returns the top-level tool from the environment variable DASH__TOOL.