deleteContact method

Future<void> deleteContact(
  1. String address
)

Implementation

Future<void> deleteContact(String address) async {
  final ls = _storage.contacts.val.toList();
  ls.removeWhere((e) => e['address'] == address);
  _storage.contacts.val = ls;
}