loadWallet method

  1. @override
Future<bool> loadWallet()
override

Implementation

@override
Future<bool> loadWallet() async {
  StoredKey storedKey = StoredKey();
  final directory = await getApplicationDocumentsDirectory();

  if (StoredKey.load("${directory.path}/wallet") != null) {
    myWallet = storedKey.wallet(walletPassword)!;
    return true;
  }
  return false;
}