init method

Future<void> init()

Implementation

Future<void> init() async {
  if (_initialized) {
    return;
  }

  try {
    await io.Process.run(_adbPath!, ['--version'], runInShell: true);
    _initialized = true;
  } on io.ProcessException catch (e) {
    throw AdbNotFoundException(message: e);
  }
}