text property

FormattableText? text
final

Contains the human-readable name for the returned result. For establishment results, this is usually the business name and address.

text is recommended for developers who wish to show a single UI element. Developers who wish to show two separate, but related, UI elements may want to use structuredFormat instead. They are two different ways to represent a Place prediction. Users should not try to parse structuredFormat into text or vice versa.

This text may be different from the displayName returned by places.get.

May be in mixed languages if the request input and languageCode are in different languages or if the Place does not have a translation from the local language to languageCode.

Implementation

final FormattableText? text;