address property

AddressInfo get address

Retrieves the address information for this landmark.

Some or all address fields may be empty depending on the source of the landmark data.

Changes made to an AddressInfo do not automatically propagate to the associated Landmark. To apply changes, set the modified AddressInfo back on the landmark via Landmark.address.

Returns

  • AddressInfo: The address details associated with the landmark.

Implementation

AddressInfo get address {
  final OperationResult resultString = objectMethod(
    pointerId,
    'Landmark',
    'getAddress',
  );

  return AddressInfo.init(resultString['result']);
}
set address (AddressInfo addr)

Sets the address information for this landmark.

Parameters

  • addr: The AddressInfo instance to assign to the landmark.

Implementation

set address(final AddressInfo addr) {
  objectMethod(pointerId, 'Landmark', 'setAddress', args: addr.pointerId);
}