in google_cloud/lib/src/serve.dart [52:64]
int listenPort() {
if (Platform.environment.containsKey(portEnvironmentKey)) {
try {
return int.parse(Platform.environment[portEnvironmentKey]!);
} on FormatException catch (e) {
throw BadConfigurationException(
'Bad value for environment variable "$portEnvironmentKey" – '
'"${Platform.environment[portEnvironmentKey]}" – ${e.message}.',
);
}
}
return defaultListenPort;
}