Identity class sealed
Identity hint for ZeroSettle.identify. Mirrors the native Identity enum.
Pick exactly one per session. Don't mix IdentityUser with IdentityAnonymous for the same person — that creates two backend identities.
- Implementers
Constructors
- Identity.anonymous()
-
No authenticated user. The SDK generates and persists a stable session UUID.
constfactory
- Identity.deferred()
-
Authentication is coming on a later screen. Suppresses the
"no user identified" warning until Identity.user or Identity.anonymous
is provided.
constfactory
- Identity.user({required String id, String? name, String? email})
-
An authenticated app user.
constfactory
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited