UmamiService class
Service for sending analytics events to Umami Analytics.
Constructors
- UmamiService({required String website, required String hostname, required String endpoint})
- Creates a UmamiService instance.
Properties
Methods
-
enviarClique(
BuildContext context, String title, String widgetName) → Future< void> - Sends a click event to Umami.
-
enviarEvento(
BuildContext context, {required String title, required String name, Map< String, dynamic> ? data}) → Future<void> - Sends a custom event to Umami.
-
getCustomUserAgent(
) → Future< String> - Returns a custom User-Agent string based on the device info.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendEvent(
{required BuildContext context, required String title, required String url, required String name, String referrer = '', Map< String, dynamic> ? data, String type = 'event'}) → Future<bool> - Sends an analytics event to Umami.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited