fromName static method

CryptoCoins<CoinConfig>? fromName(
  1. String name,
  2. BipProposal proposal
)

Implementation

static CryptoCoins? fromName(String name, BipProposal proposal) {
  switch (proposal) {
    case BipProposal.bip44:
      return Bip44Coins.fromName(name);
    case BipProposal.bip49:
      return Bip49Coins.fromName(name);
    case BipProposal.bip84:
      return Bip84Coins.fromName(name);
    case BipProposal.bip86:
      return Bip86Coins.fromName(name);
    default:
      return null;
  }
}