destroyMnemonic function
Implementation
Future<dynamic> destroyMnemonic(String walletId) async {
final mnemonic = await _storage.read(key: walletId);
if (mnemonic == null || mnemonic.isEmpty) {
return Future.error(ErrorCode.mnemonicNotExist);
}
await _storage.delete(key: walletId);
}