CompleteRegistration class final
Fire immediately after a user successfully creates an account.
Ordering matters. Call this only after your own sign-up call has
returned. Colada looks the user up by the id passed to Colada.setUser; if
that user does not exist yet the backend returns 404 and the event is lost.
The one event that carries contact data. The backend retains this event's entire metadata object; every other event has only its declared fields read and the rest discarded. That is why name, email and phoneNumber are offered here and nowhere else — sending them on another event would reach the backend and be silently dropped.
All three are optional and sent raw. The backend hashes phoneNumber before forwarding to ad platforms.
- Inheritance
-
- Object
- ColadaEvent
- CompleteRegistration
Constructors
Properties
- email → String?
-
The user's email address.
final
- eventName → String
-
Wire name sent to the backend, e.g.
Purchase.no setteroverride -
extras
→ Map<
String, Object?> -
Additional fields to retain against this event.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, Object?> -
Event-specific fields, as sent in the backend's
metadataobject.no setteroverride - name → String?
-
The user's full name, as your sign-up form captured it.
final
- phoneNumber → String?
-
The user's phone number, raw. The backend hashes it before forwarding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
Flat representation, for forwarding into your own analytics or logs.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void -
Throws ColadaInvalidEventException if this event cannot be sent.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited