get static method

Future<Contact?> get(
  1. String id, {
  2. Set<ContactProperty>? properties,
  3. Account? account,
  4. bool androidLookup = false,
})

Gets a single contact by ID.

properties - Properties to fetch. Defaults to none (only ID and display name). account - Optional account filter. Only returns contact data that exists in that account. androidLookup - If true, treats id as a lookup key instead of contact ID. Get the lookup key from contact.android?.identifiers?.lookupKey. Unlike Contact.id, lookup keys are stable after aggregation or syncs. No effect on iOS/macOS.

Implementation

static Future<Contact?> get(
  String id, {
  Set<ContactProperty>? properties,
  Account? account,
  bool androidLookup = false,
}) => _crud.get(
  id,
  properties: properties,
  account: account,
  androidLookup: androidLookup,
);