MockInfobitsAnalytics class
Mock implementation of InfobitsAnalytics for testing
Constructors
Properties
-
endedViews
→ List<
String> -
List of ended views
final
-
globalProperties
→ Map<
String, dynamic> -
Global properties
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastEvent → TrackedEvent?
-
Get the last tracked event
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalRevenue → double
-
Get total revenue tracked
no setter
-
trackedEvents
→ List<
TrackedEvent> -
List of tracked events
final
-
trackedViews
→ List<
String> -
List of tracked views
final
Methods
-
clear(
) → void - Clear all tracked data
-
endView(
String path) → Future< void> - End tracking a view
-
getEventsByName(
String name) → List< TrackedEvent> - Get events by name
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setGlobalProperties(
Map< String, dynamic> properties) → void - Set global properties
-
startView(
String path, {String referrerPath = ''}) → void - Start tracking a view
-
toString(
) → String -
A string representation of this object.
inherited
-
trackConversion(
String conversionType, {Map< String, dynamic> ? properties}) → Future<void> - Track a conversion
-
trackEvent(
String eventName, {Map< String, dynamic> ? properties}) → Future<void> - Track a custom event
-
trackRevenue(
double amount, {String currency = 'USD', Map< String, dynamic> ? properties}) → Future<void> - Track revenue
-
updateGlobalProperties(
Map< String, dynamic> properties) → void - Update global properties
-
wasEventTracked(
String eventName) → bool - Check if an event was tracked
-
wasViewTracked(
String path) → bool - Check if a view was tracked
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited