Future<void> updateContact(Map acc) async { final ls = _storage.contacts.val.toList(); ls.removeWhere((e) => e['pubKey'] == acc['pubKey']); ls.add(acc); _storage.contacts.val = ls; }