create static method

Future<String> create(
  1. Contact contact, {
  2. Account? account,
})

Creates a new contact.

contact - Contact to create. account - Optional account. If null, uses the default account.

Returns the system-generated ID. The contact's id and displayName are system-generated and will be ignored if provided.

Implementation

static Future<String> create(Contact contact, {Account? account}) =>
    _crud.create(contact, account: account);