CoinMarketData class
A class that encapsulates various market data for a cryptocurrency.
Constructors
-
CoinMarketData.fromJson(Map<
String, dynamic> json) - Constructs a CoinMarketData instance from a JSON object.
Properties
- circulatingSupply → double?
-
The circulating supply of the cryptocurrency.
final
-
dataByCurrency
→ List<
MarketData> -
A list of market data categorized by currency.
final
- fdvToTvlRatio → double?
-
The ratio of fully diluted valuation to total value locked.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastUpdated → DateTime?
-
The timestamp of the last update of the data.
final
- marketCapChange24h → double?
-
The market capitalization change in the last 24 hours.
final
- marketCapChangePercentage24h → double?
-
The percentage market capitalization change in the last 24 hours.
final
- maxSupply → double?
-
The maximum supply of the cryptocurrency.
final
- mcapToTvlRatio → double?
-
The ratio of market capitalization to total value locked.
final
- priceChange24h → double?
-
The price change in the last 24 hours.
final
- priceChangePercentage1y → double?
-
The percentage price change in the last year.
final
- priceChangePercentage7d → double?
-
The percentage price change in the last 7 days.
final
- priceChangePercentage14d → double?
-
The percentage price change in the last 14 days.
final
- priceChangePercentage24h → double?
-
The percentage price change in the last 24 hours.
final
- priceChangePercentage30d → double?
-
The percentage price change in the last 30 days.
final
- priceChangePercentage60d → double?
-
The percentage price change in the last 60 days.
final
- priceChangePercentage200d → double?
-
The percentage price change in the last 200 days.
final
- roi → double?
-
The return on investment, indicating the profitability or efficiency of the investment.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sparkline7d → MarketSparkline?
-
The sparkline data for the last 7 days.
final
- totalSupply → double?
-
The total supply of the cryptocurrency.
final
- totalValueLocked → double?
-
The total value locked in the cryptocurrency.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a string representation of the CoinMarketData instance.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited