UserProfile class abstract

Constructors

UserProfile()

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

clear() Future<void>
Clear queued operations / modifications
increment(String key) Future<void>
Increment custom property value by 1. String key - property name to increment
incrementBy(String key, int value) Future<void>
Increment custom property value by provided value. String key - property name to increment int value - value by which to increment
multiply(String key, int value) Future<void>
Multiply custom property value by provided value. String key - property name to multiply int value - value by which to multiply
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pull(String key, String value) Future<void>
Create array property, if property does not exist and remove value from array You can only use it on array properties or properties that do not exist yet String key - property name for array property String value - value to remove from array
push(String key, String value) Future<void>
Create array property, if property does not exist and add value to array You can only use it on array properties or properties that do not exist yet String key - property name for array property String value - value to add to array
pushUnique(String key, String value) Future<void>
Create array property, if property does not exist and add value to array, only if value is not yet in the array You can only use it on array properties or properties that do not exist yet String key - property name for array property String value - value to add to array
save() Future<void>
Send/Save provided values to server
saveMax(String key, int value) Future<void>
Save maximal value between existing and provided. String key - property name to check for max int value - value to check for max
saveMin(String key, int value) Future<void>
Save minimal value between existing and provided. String key - property name to check for min int value - value to check for min
setOnce(String key, String value) Future<void>
Set value only if property does not exist yet String key - property name to set String value - value to set
setProperty(String key, Object value) Future<void>
Set a single user property. It can be either a custom one or one of the predefined ones. String key - the key for the user property Object value - the value for the user property to be set. The value should be the allowed data type.
setUserProperties(Map<String, Object> userProperties) Future<void>
Provide a map of user properties to set. Those can be either custom user properties or predefined user properties Map<String, Object> properties - map of custom and predefined user propetries.
toString() String
A string representation of this object.
inherited

Operators

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