whisperr library

Official Whisperr SDK for Flutter.

Identify users and track product events to power Whisperr's churn-prevention interventions.

Classes

InMemoryPersistence
No-op persistence used when WhisperrOptions.enablePersistence is false and in tests.
SharedPreferencesPersistence
Default persistence backed by shared_preferences (works across mobile, web, and desktop).
Whisperr
Static entrypoint for the Whisperr SDK.
WhisperrApiClient
Thin transport over the Whisperr runtime API.
WhisperrBatchResult
Result of a /v1/events/batch call.
WhisperrChannel
A reachable contact address for a user on a given channel.
WhisperrClient
The Whisperr engine: an ordered, durable outbound queue that delivers identify and track calls to the runtime API with batching, retry, and offline persistence.
WhisperrOptions
Tunable behavior for the Whisperr client.
WhisperrPersistence
Storage seam for the outbound queue. Injectable so the engine stays testable without Flutter platform plugins.

Enums

WhisperrChannelType
A contact channel for a user, used by Whisperr.identify.

Constants

kWhisperrDefaultBaseUrl → const String
Default Whisperr runtime API origin. Override only for self-hosted or local development backends.
kWhisperrSdkVersion → const String
Current SDK version. Kept in sync with pubspec.yaml.

Exceptions / Errors

WhisperrApiException
Raised when the backend returns a non-2xx response or the request fails.