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