ContactKeys class

Because you can be dealing with linked contacts (unified) or individual contacts, we use this object to be able to track what sort of contact you're dealing with, and what keys can be used to find, reference, or update it.

Constructors

ContactKeys({required ContactMode? mode, String? identifier, String? singleContactId, String? unifiedContactId, Map<String, String>? otherKeys})
factory
ContactKeys.empty(ContactMode? mode)
ContactKeys.fromMap(ContactMode mode, Map map)
factory
ContactKeys.id(ContactMode mode, String identifier)
Contact keys that is based on the logic PK for the mode
factory
ContactKeys.of(ContactMode mode, dynamic dyn)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier String?
getter/setter pair
mode ContactMode?
getter/setter pair
otherKeys Map<String, String>
getter/setter pair
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleContactId String?
getter/setter pair
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
unifiedContactId String?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited