Cryptocurrency constructor

Cryptocurrency({
  1. required String id,
  2. required String name,
  3. required String symbol,
  4. required String image,
  5. required num currentPriceUSD,
  6. required num marketCap,
  7. required int marketCapRank,
  8. required num totalVolume,
  9. required num priceChange24h,
  10. required num totalSupply,
})

Implementation

Cryptocurrency({
  required this.id,
  required this.name,
  required this.symbol,
  required this.image,
  required this.currentPriceUSD,
  required this.marketCap,
  required this.marketCapRank,
  required this.totalVolume,
  required this.priceChange24h,
  required this.totalSupply,
});