addContact method

Future<void> addContact(
  1. Map acc
)

Implementation

Future<void> addContact(Map acc) async {
  final ls = _storage.contacts.val.toList();
  ls.add(acc);
  _storage.contacts.val = ls;

  if (acc['observation'] ?? false) {
    setCurrentAddress(acc['address']);
  }
}