Cryptocurrency class

Annotations
  • @HiveType(typeId: 1)

Constructors

Cryptocurrency({required String id, required String name, required String symbol, required String image, required num currentPriceUSD, required num marketCap, required int marketCapRank, required num totalVolume, required num priceChange24h, required num totalSupply})

Properties

box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
currentPrice num
no setter
currentPriceUSD num
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
image String
getter/setter pair
isFavorite bool
getter/setter pair
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
marketCap num
getter/setter pair
marketCapRank int
getter/setter pair
name String
getter/setter pair
priceChange24h num
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
getter/setter pair
totalSupply num
getter/setter pair
totalVolume num
getter/setter pair

Methods

delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

currencySymbol String
getter/setter pair
currentPriceMultiplier num
getter/setter pair

Static Methods

FetchPriceMultiplier(String currency) Future<void>