FakeAnalyticsProvider class

A fake AnalyticsProvider whose state is populated when Assignments are tracked via trackAssignment and when Visitor ids are identified via identify

Constructors

FakeAnalyticsProvider()

Properties

assignmentsTracked List<Pair<String, Assignment>>
Returns a list of Pairs where each pair represents a tracked Assignment
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visitorsIdentified List<String>
Returns a list of Strings representing the Visitors identified, where each String in the list is the id of the identified Visitor
no setter

Methods

identified({required String visitorId}) bool
True if the provided Visitor id was identified
identify({required String visitorId}) Future<void>
Associate this visitor id with the current entity in the analytics services
noAssignmentsTracked() bool
True if no Assignments have been tracked
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
noVisitorsIdentified() bool
True if no Visitors have been identified
toString() String
A string representation of this object.
inherited
trackAssignment({required String visitorId, required Assignment assignment}) Future<void>
Track this assignment for the provided visitor identifier in the analytics service
tracked({required Pair<String, Assignment> assignment}) bool
True if the provided Visitor id and Assignment were tracked

Operators

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