Future<String> fetchBrokerUrlFromPath(String path, String otherwise)

Source

static Future<String> fetchBrokerUrlFromPath(
    String path, String otherwise) async {
  try {
    return (await HttpRequest.getString(path)).trim();
  } catch (e) {
    return otherwise;
  }
}