Analytics class

Properties

app → App
Non-null App for this instance of analytics service.
no setter
hashCode int
The hash code for this object.
no setterinherited
jsObject AnalyticsJsImpl
JS object.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

logEvent({required String name, Map<String, Object?>? parameters, AnalyticsCallOptions? callOptions}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAnalyticsCollectionEnabled({required bool enabled}) → void
setConsent({bool? adPersonalizationSignalsConsentGranted, bool? adStorageConsentGranted, bool? adUserDataConsentGranted, bool? analyticsStorageConsentGranted, bool? functionalityStorageConsentGranted, bool? personalizationStorageConsentGranted, bool? securityStorageConsentGranted}) → void
setCurrentScreen({String? screenName, AnalyticsCallOptions? callOptions}) → void
setUserId({String? id, AnalyticsCallOptions? callOptions}) → void
setUserProperty({required String name, required String? value, AnalyticsCallOptions? callOptions}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getInstance(AnalyticsJsImpl jsObject) Analytics
Creates a new Analytics instance from a jsObject.
isSupported() Future<bool>