AnalyticsRevenueEvent class

Class for revenue-related analytics events.

Inheritance

Constructors

AnalyticsRevenueEvent({required double revenue, String? currency, String? orderId, String? receipt, String? productId, String? productName, String? eventName, Map<String, Object?>? data, AnalyticsContext? context})
Creates a AnalyticsRevenueEvent

Properties

contextData Map<String, Object?>?
A Map created from the AnalyticsContext passed to this event.
finalinherited
currency String?
The name of the currency. This name is identified by the ISO 4217 currency code. For more details, refer to ISO Web.
no setter
data Map<String, Object?>?
Analytics data.
finalinherited
flatData Map<String, Object?>?
A flat map from contextData and data.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of this event.
finalinherited
Data for NavigationInteractionContext.
no setterinherited
orderId String?
Identifier for order.
no setter
productId String?
Identifier for products.
no setter
productName String?
Name of the product.
no setter
receipt String?
Receipt after purchasing a product.
no setter
revenue double
Value of revenue.
no setter
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.
inherited

Operators

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

Constants

kDataKeyCurrency → const String
Constants for data keys related to currency.
kDataKeyOrderId → const String
Constants for data keys related to Order ID.
kDataKeyProductId → const String
Constants for data keys related to product ID.
kDataKeyProductName → const String
Constants for data keys related to product name.
kDataKeyReceipt → const String
Constants for data keys related to receipt.
kDataKeyRevenue → const String
Constants for data keys related to revenue.