Item class

Inheritance

Constructors

Item({required String transactionId, required String name, required String code, double? price, String? category, int? quantity})
Item.fromMap(String oldId, Map body)

Properties

anonymousId String?
getter/setter pairinherited
bodyTrack Map<String, Object>
no setteroverride
category String?
Specifies the product category that an item belongs to. The maximum permitted length is 500 Bytes.
getter/setter pair
clientId String
getter/setter pairinherited
code String
Specifies an item's SKU or product bar code. The maximum permitted length is 500 Bytes.
getter/setter pair
communBodyTrack Map<String, Object>
no setterinherited
createdAt DateTime?
CreatedAt date
getter/setter pairinherited
dataSource String
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
location String?
This argument refers to the Screen Name of the app, at the moment the hit is sent. The maximum permitted length is 2048 Bytes .
getter/setter pairinherited
name String
Specifies the name of an item. The maximum permitted length is 500 Bytes.
getter/setter pair
price double?
Specifies the item price
getter/setter pair
quantity int?
Indicates the number of units of an item that are purchased.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenResolution String?
Refers to the the screen resolution in pixels. The maximum permitted length is 20 Bytes.
getter/setter pairinherited
sessionNumber int?
Indicates the number of sessions the current visitor has logged, including the current session.
getter/setter pairinherited
transactionId String
TransactionId allows an item to be linked to a transaction with a matching Transaction ID. The maximum permitted length is 500 Bytes.
getter/setter pair
type HitCategory
getter/setter pairinherited
typeOfEvent String
no setterinherited
userIp String?
Refers to the IP address of the user. This should be a valid IP address in IPv4 or IPv6 format. The maximum permitted length is 45 Bytes.
getter/setter pairinherited
userLanguage String?
Refers to the user's language. The maximum permitted length is 20 Bytes.
getter/setter pairinherited
visitorId String
getter/setter pairinherited

Methods

isLessThan4H() bool
inherited
isValid() bool
inherited
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