Account class

Uniquely identifies an account and its associated identity.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

Account({String? id, required AccountIdentity identity})
Account.fromJson(Map<String, dynamic> json)
factory
Account.withEmailIdentity(String emailAddress)
Create a new Account uniquely identified by the specified emailAddress.
Account.withUsernameIdentity(String username)
Create a new Account uniquely identified by the specified username.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
identity AccountIdentity
Identity associated with this account.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hasSameIdentity(Account otherAccount) bool
Determines whether this account has the same identity as otherAccount.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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