ContactInfo class Places
Contact info class
A ContactInfo can have multiple values of the same ContactInfoFieldType.
Changes made to this object will not be automatically reflected in associated Landmark. Use the Landmark.contactInfo setter to set the contact info for a landmark.
Constructors
- ContactInfo()
-
factory
- ContactInfo.init(int id, int mapId)
Properties
- fieldsCount → int
-
Gets the field count.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mapId → int
-
no setter
- pointerId → dynamic
-
no setter
- 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 - Add a new field to the contact info
-
getFieldName(
int index) → String? - Gets the field name/short description. Depends on the language set. Usually used for display in UI
-
getFieldType(
int index) → ContactInfoFieldType? - Gets the field type.
-
getFieldValue(
int index) → String? - Gets the field value.
-
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 a field specified by index.
-
setField(
{required int index, required ContactInfoFieldType type, required String value, required String name}) → void - Sets field type, value and name.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited