ContactInfo class Snapshot Types Landmarks

Stores contact information associated with a Landmark.

A ContactInfo holds a list of contact fields (for example phone numbers, email addresses or URLs). Multiple values of the same ContactInfoFieldType are allowed.

Modifying a ContactInfo instance is local to the object; to persist changes on a Landmark, reassign the modified instance to Landmark.contactInfo.

See also:

Constructors

ContactInfo()
Creates a new, empty ContactInfo.
factory

Properties

fieldsCount → int
Number of fields stored in this contact info.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasRegisteredAutoReleaseObject ↔ bool
getter/setter pairinherited
pointerId → int
The pointer ID of the native object
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addField({required ContactInfoFieldType type, required String value, required String name}) → void
Adds a new field to this contact info instance.
dispose() → void
Disposes the native object.
inherited
getFieldName(int index) → String?
Returns the display name (short description) for the field at index.
getFieldType(int index) → ContactInfoFieldType?
Returns the ContactInfoFieldType for the field at index.
getFieldValue(int index) → String?
Returns the value for the field at index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
removeField(int index) → void
Removes the field at index.
setField({required int index, required ContactInfoFieldType type, required String value, required String name}) → void
Sets or updates a contact field at index.
toString() → String
A string representation of this object.
inherited

Operators

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