hasApp method
Returns if this screen has the specified app installed
Implementation
Future<bool> hasApp(String app) async {
HttpClientResponse? response;
try {
response = await send('GET', '/apps/$app');
if (response.statusCode == 404) {
return false;
}
return true;
} finally {
if (response != null) {
await response.drain();
}
}
}