People class Null safety

Core class for using Mixpanel People Analytics features.

The People object is used to update properties in a user's People Analytics record, and to manage the receipt of push notifications sent via Mixpanel Engage. For this reason, it's important to call identify(String) on the People object before you work with it. Once you call identify, the user identity will persist across stops and starts of your application, until you make another call to identify using a different id.

Constructors

People(String token)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

append(String name, dynamic value) → void
Appends a value to a list-valued property. If the property does not currently exist, it will be created as a list of one element. If the property does exist and doesn't currently have a list value, the append will be ignored. [...]
clearCharges() → void
Permanently clear the whole transaction history for the identified people profile.
deleteUser() → void
Permanently deletes the identified user's record from People Analytics. [...]
increment(String prop, double by) → void
Add the given amount to an existing property on the identified user. If the user does not already have the associated property, the amount will be added to zero. To reduce a property, provide a negative number for the value. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(String name, dynamic value) → void
Remove value from a list-valued property only if they are already present in the list. If the property does not currently exist, the remove will be ignored. If the property exists and is not list-valued, the remove will be ignored. [...]
set(String prop, dynamic to) → void
Sets a single property with the given name and value for this user. The given name and value will be assigned to the user in Mixpanel People Analytics, possibly overwriting an existing property with the same name. [...]
setOnce(String prop, dynamic to) → void
Works just like set(), except it will not overwrite existing property values. This is useful for properties like "First login date". [...]
toString() String
A string representation of this object. [...]
inherited
trackCharge(double amount, {Map<String, dynamic>? properties}) → void
Track a revenue transaction for the identified people profile. [...]
union(String name, List value) → void
Adds values to a list-valued property only if they are not already present in the list. If the property does not currently exist, it will be created with the given list as it's value. If the property exists and is not list-valued, the union will be ignored. [...]
unset(String name) → void
permanently removes the property with the given name from the user's profile [...]

Operators

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