getAvailableChains method

  1. @override
List<String>? getAvailableChains()
override

Will get the list of available chains to add

Implementation

@override
List<String>? getAvailableChains() {
  // if there's no session or if supportsAddChain method then every chain can be used
  if (_currentSession == null || _currentSession!.hasSwitchMethod()) {
    return null;
  }
  return getApprovedChains();
}