createAll static method

Future<List<String>> createAll(
  1. List<Contact> contacts, {
  2. Account? account,
})

Creates multiple contacts in a single batch operation.

contacts - Contacts to create. account - Optional account. If null, uses the default account.

Returns a list of system-generated IDs in the same order as input. The contact's id and displayName are system-generated and will be ignored if provided.

Implementation

static Future<List<String>> createAll(
  List<Contact> contacts, {
  Account? account,
}) => _crud.createAll(contacts, account: account);