getChain static method

ChainInfo? getChain(
  1. int chainId,
  2. String chainName
)

Implementation

static ChainInfo? getChain(int chainId, String chainName) {
  String key = [chainName.toLowerCase(), chainId].join('-');
  if (!ParticleChains.containsKey(key)) {
    return null;
  }
  return ParticleChains[key];
}