removeWallet method
Remove a wallet by ID
Implementation
@override
Future<void> removeWallet(String walletId) async {
await dbRdy;
// find wallet by id
final walletBox = _objectBox.store.box<DbWallet>();
final existingWallet = await walletBox
.query(DbWallet_.id.equals(walletId))
.build()
.findFirst();
if (existingWallet != null) {
await walletBox.remove(existingWallet.dbId);
}
return Future.value();
}