command method
Implementation
Future<String> command(String command, {bool debug = false}) async {
return _bridge.executor
.execute([..._connection.arguments, 'shell', 'command', '-v', command], debug: debug)
.then((result) {
final string = result.stdout.toString().trim();
if (result.exitCode != 0 || string.isEmpty) {
throw AdbFileNotFoundExeption(command);
} else {
return string;
}
})
.catchError((e) {
throw AdbFileNotFoundExeption(command);
});
}