NoopAnalytics class

Implemented types

Constructors

NoopAnalytics()

Properties

Consent gate API.
final
enabled bool
Whether this is a live collector (false for the noop).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session SessionApi
Analytics-session API (NOT replay).
final
sinks List<String>
Registered sink names.
no setteroverride

Methods

addSink(AnalyticsSink sink) → void
Register an additional sink at runtime.
override
alias(String userId, [String? previousId, CallOptions? opts]) → void
override
anonymousId() String
Persistent, non-PII anonymous id.
override
flush() Future<void>
Flush all sinks (and the internal batch).
override
group(String groupId, [AnalyticsProperties? traits, CallOptions? opts]) → void
override
identify(String userId, [AnalyticsProperties? traits, CallOptions? opts]) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
page([String? name, AnalyticsProperties? properties, CallOptions? opts]) → void
override
removeSink(String name) → void
Remove a sink by name.
override
reset() → void
Reset identity + session (privacy-safe logout). Mints a fresh anonymousId and ends the session.
override
screen([String? name, AnalyticsProperties? properties, CallOptions? opts]) → void
override
toString() String
A string representation of this object.
inherited
track(String event, [AnalyticsProperties? properties, CallOptions? opts]) → void
override
userId() String?
Current opaque user id (if identified).
override
withContext(Map<String, Object?> context) Analytics
Derive a child that merges extra context into every event.
override

Operators

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