getChainId static method

int getChainId({
  1. required EvmChain chaintype,
})

if the chaintype isn't found, getChainId will return -1.

Implementation

static int getChainId({required EvmChain chaintype}) {
  return _chainDetails[chaintype]?.id ?? -1;
}