ping static method

Future<bool> ping()

Implementation

static Future<bool> ping() async {
  try {
    final res = await http.get(Uri.parse("$_base/ping"));
    return res.statusCode == 200;
  } catch (_) {
    return false;
  }
}