removeNip05 method

  1. @override
Future<void> removeNip05(
  1. String pubKey
)
override

Implementation

@override
Future<void> removeNip05(String pubKey) async {
  await dbRdy;
  final box = _objectBox.store.box<DbNip05>();
  final existing = box.query(DbNip05_.pubKey.equals(pubKey)).build().find();
  if (existing.isNotEmpty) {
    box.removeMany(existing.map((e) => e.dbId).toList());
  }
}