Coin class
Coin model which holds a single coin data. It contains 14 required variables that hold a single coin data: coinID, coinImage, coinName, coinShortName, coinPrice, coinLastPrice, coinSymbol, coinPairWith, coinHighDay, coinLowDay, coinDecimalPair, coinDecimalCurrency and coinListed.
Constructors
- Coin({required String id, required String image, required String name, required String shortName, required String price, required String lastPrice, required String percentage, required String symbol, required String pairWith, required String highDay, required String lowDay, required int decimalCurrency})
Properties
- decimalCurrency ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- highDay ↔ String
-
getter/setter pair
- id ↔ String
-
ID of coin
if you don't have coin ID then enter any random number
getter/setter pair
- image ↔ String
-
Image of coin
getter/setter pair
- lastPrice ↔ String
-
last price of coin
if you don't have last price of coin then enter price of coin
getter/setter pair
- lowDay ↔ String
-
getter/setter pair
- name ↔ String
-
Name of coin
getter/setter pair
- pairWith ↔ String
-
getter/setter pair
- percentage ↔ String
-
percentage change of coin
getter/setter pair
- price ↔ String
-
price of coin
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortName ↔ String
-
short name of coin
getter/setter pair
- symbol ↔ String
-
symbol of coin
getter/setter pair
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