Profile class

Wrapper object for the user's profile and associated state.

Constructors

Profile(String address, String username, Map<String, Int64> coins, List<Item> items, bool hasStripe)

Properties

address String
The user's address.
final
asOf DateTime
The DateTime this profile was retrieved. Use it to make decisions about when to retrieve the profile again.
final
coins Map<String, Int64>
Map containing all of the user's coins.
final
hashCode int
The hash code for this object.
no setterinherited
hasStripe bool
Does the user have Stripe enabled?
final
items List<Item>
List containing all of the user's items.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
The user's human-readable username.
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

Static Methods

get() Future<Profile?>
Retrieves the current state of the profile on chain, or null if no profile exists.