unitrack library

Classes

AnalyticsProvider
LastTap
Snapshot of the last user tap, used to mirror taps onto network events.
UniTrack
UniTrackBodyCapture
Installs a global HttpOverrides that records every HTTP request/error and mirrors the last tap (button + screen) that triggered it. Call once at startup. Returns the previous overrides so callers can chain if needed. Options for HTTP body capture. OFF by default for privacy — request and response bodies often contain credentials / PII. Opt in explicitly.
UniTrackConfig
UniTrackHttpClient
UniTrackNavigatorObserver
NavigatorObserver — auto-tracks Flutter routes.
UniTrackRemoteConfig
UniTrackRouteObserver
Tracks the current screen and forwards screen_view to the SDK.
UniTrackTapObserver
Wrap your app once with this widget to auto-capture every tap.
UniTrackTraceContext
UniTrackTraceIds
UniTrackTracingConfig
Runtime tracing settings, fed from remote config. Holds enabled flag, the header name, the host allowlist (fail-closed when empty), and the sampled flag. Replaced atomically by setTracing; HTTP interceptor reads the current value at request time.

Functions

safeJsonParse<T>(String targetType, String raw) → T?
Safely parse JSON, reporting failures to UniTrack.