SkyAnalytics class
A class that sends events to SkyAnalytics.
Constructors
- SkyAnalytics.new({required String sourceKey, required String host, required bool enabled, dynamic showLogs = false})
-
Factory constructor to provide the singleton instance.
factory
Properties
- client → HttpClient
-
The HTTP client.
final
-
The cookie manager.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
The SkyAnalytics host.
final
- isEnable → bool
-
The flag to enable or disable the analytics.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLogs → bool
-
The flag to show logs.
final
- sourceKey → String
-
The SkyAnalytics source key.
final
Methods
-
bugReport(
{required String description, required String name, required String contact, List< File> ? files}) → Future<void> - Send bug report with the given
-
clearMetadata(
) → Future< void> - Clears the metadata.
-
dispose(
) → void - Disposes the SkyAnalytics instance.
-
event(
{required String name, Map< String, dynamic> ? parameters}) → Future<void> -
Sends an event with the given
name
andparameters
to SkyAnalytics. -
metadata(
Map< String, String> payload) → Future<void> -
Sets the global metadata with the given
payload
. -
Navigates to the screen with the given
screenName
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited