connect method

Future<String> connect({
  1. WalletApp? walletApp,
  2. dynamic request,
})

Implementation

Future<String> connect({WalletApp? walletApp, dynamic request}) async {
  try {
    final wallets = await _connector.getWallets();
    walletApp ??= (wallets.isNotEmpty ? wallets.first : fallbackWalletsList.first);
  } catch(e) {
    walletApp ??= fallbackWalletsList.first;
  }
  return await _connector.connect(walletApp, request);
}