CoinGeckoResult<T> constructor

CoinGeckoResult<T>(
  1. T data, {
  2. bool isError = false,
  3. String? errorMessage,
  4. int? errorCode,
})

Constructor for CoinGeckoResult

data - The result data from the API isError - Indicates if there was an error (default is false) errorMessage - The error message if an error occurred errorCode - The error code if an error occurred

Implementation

CoinGeckoResult(
  this.data, {
  this.isError = false,
  this.errorMessage,
  this.errorCode,
});