HatangUser class

The identity a host app attaches to the visitor with identify.

hash is the HMAC-SHA256 of userId (or the email when there is no user id) computed on the host's server with the site's identity secret; it proves the identity so the visitor can be merged with earlier sessions.

Annotations

Constructors

HatangUser({String? userId, String? email, String? name, String? phone, String? hash, Map<String, Object?>? data})
Creates a user; every field is optional but at least one should be set.
const

Properties

data → Map<String, Object?>?
Custom attributes shown to agents.
final
email → String?
Email.
final
hash → String?
Identity HMAC from the host's server.
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Nothing to send.
no setter
name → String?
Display name.
final
phone → String?
Phone.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String?
The host app's user id.
final

Methods

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