FakePerson class final

One person or agent of the world.

Constructors

FakePerson({required String id, required String handle, required String displayName, String kind = 'user', String? loginName, String? password, String? totpCode, bool isOwner = false, bool newDevicesPending = false})
Creates a principal; kind is user or agent.

Properties

createdAt ↔ String
When the person was created.
getter/setter pair
displayName → String
The display name.
final
email ↔ String?
The e-mail address of the profile, or null.
getter/setter pair
handle → String
The handle.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The principal ID.
final
identities → Map<String, JsonMap>
The linked external identities (Identity), by ID.
final
isOwner ↔ bool
Whether the person is an owner (addOwner and revokeOwner change it).
getter/setter pair
kind → String
user or agent.
final
locale ↔ String?
The language of the profile (users.locale), or null while the person has chosen none.
getter/setter pair
loginName → String?
The login name of a local account, or null.
final
newDevicesPending ↔ bool
Whether a device that logs in with a password starts pending (08 5.2); false lets tests skip the approval, a simplification the README names.
getter/setter pair
ownerGrantedAt ↔ String
When and why the person became an owner (Owner.granted_at, Owner.reason).
getter/setter pair
ownerReason ↔ String
The reason of the owner row.
getter/setter pair
passkeys → Map<String, JsonMap>
The passkeys (Passkey), by ID.
final
password → String?
The password of a local account.
final
ref → JsonMap
The API PrincipalRef.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String
pending, active, disabled or deleted (UserStatus); disableUser and enableUser change it.
getter/setter pair
timeZone ↔ String?
The IANA time zone of the profile (users.time_zone), or null.
getter/setter pair
totpCode → String?
The TOTP code the fake accepts (fixed: the fake has no clock-based TOTP).
final
user → JsonMap
The API User.
no setter

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