updateContact method

Future<void> updateContact(
  1. Map acc
)

Implementation

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;
}