ConsoleAnalyticsLogger class

Analytics logger that uses Dart's print function to print events to the console.

Implemented types

Constructors

ConsoleAnalyticsLogger()

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

logEvent({required String name, Map<String, Object?>? parameters}) Future<void>
Log a generic event.
override
logScreenView({required String screenName, String? screenClass}) Future<void>
On real applications, the event should be loggedan analytics Screen View
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setUserId(String? id) Future<void>
Set the id of the user within the analytics service
override
setUserProperty(String property, String? value) Future<void>
Set a property of the user within the analytics service
override
toString() String
A string representation of this object.
inherited

Operators

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