RudderProperty class

A class for managing event properties in RudderStack events.

RudderProperty is used to store and manage key-value pairs that represent properties of events being tracked. It provides convenient methods for setting common properties like revenue and currency, as well as generic properties.

Constructors

RudderProperty()
Creates a new RudderProperty instance with an empty property map.
RudderProperty.fromMap(Map<String, dynamic> map)
Creates a RudderProperty instance from an existing map.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getMap() Map<String, dynamic>
Returns the internal property map.
hasProperty(String key) bool
Checks if a property with the given key exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, dynamic value) → void
Sets a property with the given key and value.
putCurrency(String currency) → void
Sets the currency property for e-commerce events.
putRevenue(double revenue) → void
Sets the revenue property for e-commerce events.
putValue({String? key, dynamic value, Map<String, dynamic>? map}) RudderProperty
Sets properties using either a key-value pair or a map of properties.
toString() String
A string representation of this object.
override

Operators

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