exportAll method

String exportAll(
  1. List<Contact> contacts, {
  2. VCardVersion version = VCardVersion.v3,
})

Exports multiple contacts to vCard format.

version - vCard version to use.

Returns the concatenated vCard string.

Implementation

String exportAll(
  List<Contact> contacts, {
  VCardVersion version = VCardVersion.v3,
}) => contacts.map((c) => VCardWriter.write(c, version)).join('\r\n');