Coin constructor

Coin(
  1. bool addCoin,
  2. Cryptocurrency coin,
  3. Function onClick
)

Implementation

Coin(this.addCoin, this.coin, this.onClick);