TrackingGuard class

A TrackingGuard only forwards events to its child if shouldTrack evaluates truthy.

Inheritance
Annotations

Constructors

TrackingGuard({required AbstractTracker child, required Future<bool> shouldTrack(AbstractEvent)})
Default initialiser
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
close Deallocates the underlying tracker instance and stops all tracking.
override
disableGdprContext() Future<void>
disableGdprContext Disables GDPR context.
override
enableGdprContext(GDPRContext context) Future<void>
enableGdprContext Enables GDPR context to be sent with every event.
override
initialize() Future<void>
initialize Initializes the tracker.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSubject(Subject subject) Future<void>
setSubject Sets the subject on the platform's tracker instance.
override
toString() String
A string representation of this object.
inherited
track(AbstractEvent event) Future<void>
track Tracks the given event parameter by the platform's tracker instance.
override

Operators

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