selectedChain property

  1. @override
ReownAppKitModalNetworkInfo? get selectedChain
override

The currently selected chain.

Implementation

@override
ReownAppKitModalNetworkInfo? get selectedChain {
  if (NamespaceUtils.isValidChainId(_selectedChainID ?? '')) {
    final namespace = NamespaceUtils.getNamespaceFromChain(_selectedChainID!);
    final id = ReownAppKitModalNetworks.getIdFromChain(_selectedChainID!);
    return ReownAppKitModalNetworks.getNetworkInfo(namespace, id);
  }
  return null;
}