selectedChain property

  1. @override
ReownAppKitModalNetworkInfo? get selectedChain
override

The currently selected chain.

Implementation

@override
ReownAppKitModalNetworkInfo? get selectedChain {
  if (_currentSelectedChainId != null) {
    final namespace = ReownAppKitModalNetworks.getNamespaceForChainId(
      _currentSelectedChainId!,
    );
    return ReownAppKitModalNetworks.getNetworkById(
      namespace,
      _currentSelectedChainId!,
    );
  }
  return null;
}