getCoin static method
Implementation
static CryptoCoins? getCoin(String name, CoinProposal proposal) {
switch (proposal) {
case BipProposal.bip44:
case BipProposal.bip49:
case BipProposal.bip84:
case BipProposal.bip86:
return BipCoins.fromName(name, proposal as BipProposal);
case CipProposal.cip1852:
return Cip1852Coins.fromName(name);
case SubstratePropoosal.substrate:
return SubstrateCoins.fromName(name);
case MoneroProposal.monero:
return MoneroCoins.fromName(name);
default:
return null;
}
}