Contact class
A contact.
Once created, no properties of a Contact object may be changed.
- Annotations
-
- @immutable
Constructors
-
Contact({List<
Address> ? addresses, List<Chat> ? chats, List<CustomField> ? customFields, List<Email> ? emails, List<Event> ? events, List<InternetCall> ? internetCalls, required Name name, String? notes, Organization? organization, List<Phone> ? phones, List<Website> ? websites}) -
Constructs a Contact instance.
const
- Contact.fromJson(String json)
-
Constructs an Contact instance from a
json
string.factory -
Contact.fromMap(Map<
String, dynamic> map) -
Constructs an Contact instance from a
map
.
Properties
-
addresses
→ List<
Address> ? -
The addresses.
final
-
chats
→ List<
Chat> ? -
The chats.
final
-
customFields
→ List<
CustomField> ? -
The custom fields.
final
-
emails
→ List<
Email> ? -
Email addresses.
final
-
events
→ List<
Event> ? -
Events.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
internetCalls
→ List<
InternetCall> ? -
Internet calls.
final
- name → Name
-
The full name.
final
- notes → String?
-
The notes.
final
- organization → Organization?
-
The organization.
final
-
phones
→ List<
Phone> ? -
Phone numbers.
final
-
Related people.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
websites
→ List<
Website> ? -
The websites.
final
Methods
-
copyWith(
{List< Address> ? addresses, List<Chat> ? chats, List<CustomField> ? customFields, List<Email> ? emails, List<Event> ? events, List<InternetCall> ? internetCalls, Name? name, String? notes, Organization? organization, List<Phone> ? phones, List<Website> ? websites}) → Contact - Creates a copy of this Contact instance but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Creates a JSON string representing this Contact instance.
-
toMap(
) → Map< String, dynamic> - Creates a Map<String, dynamic> representing this Contact instance.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant Contact other) → bool -
The equality operator.
override