getSecureStoreForWallet method

Future<SecureStore> getSecureStoreForWallet({
  1. required BuildContext context,
  2. String? walletId,
})

Implementation

Future<SecureStore> getSecureStoreForWallet({
  required BuildContext context,
  String? walletId,
}) async {
  final wallet =
      walletId != null ? state.wallets[walletId] : state.selectedWallet;
  if (wallet == null) {
    throw Exception("Wallet not found");
  }
  return getSecureStore(
    getPassword: () => WalletKit().getPassword(context),
    type: wallet.secureStoreType,
  );
}