PriceInfo class
A class that wraps price information data.
Constructors
-
PriceInfo.fromJson(String id, Map<
String, dynamic> _json) - Constructs a PriceInfo instance from a JSON object.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The identifier for the price information.
final
- lastUpdatedAt → DateTime
-
The timestamp indicating when the data was last updated.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get24hChangeIn(
String vsCurrency) → double? -
Returns the 24-hour change in the specified
vsCurrency
. -
get24hVolIn(
String vsCurrency) → double? -
Returns the 24-hour volume in the specified
vsCurrency
. -
getMarketCapIn(
String vsCurrency) → double? -
Returns the market cap in the specified
vsCurrency
. -
getPriceIn(
String vsCurrency) → double? -
Returns the price in the specified
vsCurrency
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the PriceInfo instance.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited