abto library

ABTO SDK for Flutter/Dart with the same event contract as the Browser SDK.

Classes

AbtoClient
ABTO SDK entry point for Flutter/Dart. Uses the same event contract as the Browser SDK and posts {"batch": […]} to the Analytics ingestion contract: event_id, device_id, event_name, occurred_at, and extra_json.
AbtoConfig
AbtoContext
Identity context that manages shared event fields: anonymous_id, session_id, user_id, and tenant_id.
AbtoInMemoryStore
AbtoKeyValueStore
Persistence boundary for anonymous_id. Flutter apps can supply a shared_preferences adapter; tests use an in-memory implementation.
AbtoLlmTrace
Lifecycle of one LLM call, joining prior behavior by trace_id and Gateway cost and latency by request_id.

Extension Types

AbtoResponseInteraction

Functions

abtoEventNameIssue(String event) → String?
abtoMetricValue(num? value) → num?
abtoScaleValue(String? value) → String?
abtoValidProperties(Map<String, Object?> properties) → bool
isoTimestamp() → String
randomHex(int byteCount) → String
uuidV7([DateTime? date]) → String
uuidV7TraceId() → String

Exceptions / Errors

AbtoInitException