WiredashAnalytics class

Interact with the Wiredash Analytics service.

This class provides a convenient way to track events and send them to the Wiredash Console.

This class makes it easy to inject and mock the trackEvent method for testing. For simple scenarios, call Wiredash.trackEvent directly.

Constructors

WiredashAnalytics({String? projectId, String? environment})
Creates a new instance of WiredashAnalytics, creating multiple is totally fine. The events are stored on disk and sent to the server in periodic intervals.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
trackEvent(String eventName, {Map<String, Object?>? data}) Future<void>
Tracks an event with Wiredash.

Operators

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