gceMetadataHost top-level property

String get gceMetadataHost

Returns the host for the GCE metadata server.

Checks GCE_METADATA_HOST environment variable, defaulting to metadata.google.internal.

Implementation

String get gceMetadataHost =>
    Platform.environment[_metadataHostEnvVar] ?? _defaultMetadataHost;