CoinGeckoResult<T> class

Wrapper class for CoinGecko API result data

Constructors

CoinGeckoResult(T data, {bool isError = false, String? errorMessage, int? errorCode})
Constructor for CoinGeckoResult

Properties

data → T
Result data from the API
final
errorCode → int?
Error code if an error occurred
final
errorMessage → String?
Error message if an error occurred
final
hashCode → int
The hash code for this object.
no setterinherited
isError → bool
Indicates whether there was an error executing the request
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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