FakeAnalyticsProvider class
A fake AnalyticsProvider whose state is populated when
Assignments are tracked via trackAssignment and when
Visitor ids are identified via identify
Constructors
Properties
-
assignmentsTracked
→ List<
Pair< String, Assignment> > -
Returns a list of Pairs where each pair represents
a tracked
Assignmentno 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 identifiedVisitorno setter
Methods
-
identified(
{required String visitorId}) → bool -
True if the provided
Visitorid 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
Visitorid andAssignmentwere tracked
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited