BatchUser class

Provides user related functionality, such as custom data and events. Do not instanciate this: use the instance static property.

Constructors

BatchUser()

Properties

attributes Future<Map<String, BatchUserAttribute>>
Read the saved attributes. Reading is asynchronous so as not to interfere with saving operations.
no setter
hashCode int
The hash code for this object.
no setterinherited
identifier Future<String?>
Get the user identifier. Returns null if you didn't set one.
no setter
installationID Future<String?>
Get the unique Installation ID, generated by the SDK.
no setter
language Future<String?>
Get the language override. Returns null if you didn't set a custom language.
no setter
region Future<String?>
Get the region override. Returns null if you didn't set a custom language.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagCollections Future<Map<String, List<String>>>
Read the saved tag collections. Reading is asynchronous so as not to interfere with saving operations.
no setter

Methods

newEditor() BatchUserDataEditor
Instanciate a new BatchUserDataEditor to edit custom data attributes and tags.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trackEvent({required String name, String? label, BatchEventData? data}) → void
Track an event.
trackLocation({required double latitude, required double longitude}) → void
Track a geolocation update.
trackTransaction(double amount) → void
Track a transaction.

Operators

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

Static Properties

instance BatchUser
Batch User module singleton.
getter/setter pair