AnalyticsSink class abstract

Sink SPI — implemented by adapter packages (GA4, Azure, PostHog) and by the built-in HTTP sink. A sink declares the consent categories it requires; the router will not deliver to a sink whose categories are not all granted.

Implementers

Constructors

AnalyticsSink()

Properties

consentCategories List<String>?
Consent categories this sink requires (e.g. ['analytics']).
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Stable sink identifier.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deliver(List<AnalyticsEvent> batch, SinkDeliverContext ctx) FutureOr<void>
Deliver a batch of canonical events.
flush() FutureOr<void>
Flush any buffered state (best-effort).
init(SinkInitContext ctx) FutureOr<void>
Called once before the first delivery.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown() FutureOr<void>
Release resources on reset()/shutdown.
toString() String
A string representation of this object.
inherited

Operators

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