createContact method

Future<Result<Contact>> createContact(
  1. Contact contact
)

Creates a new contact

contact - The contact to create Returns the created contact with assigned ID

Implementation

Future<Result<Contact>> createContact(Contact contact) async {
  _ensureInitialized();
  return _createContactUseCase.call(
    CreateContactParams(contact: contact),
  );
}