uninstall method

Future<void> uninstall({
  1. required String packageName,
  2. AdbUninstallOptions? options,
  3. bool debug = false,
})

Uninstalls an APK from the device.

packageName is the name of the package to uninstall. options is optional and can be used to specify additional options.

Returns the result of the uninstallation.

Implementation

Future<void> uninstall({required String packageName, AdbUninstallOptions? options, bool debug = false}) async {
  final args = ['uninstall'];
  if (options != null) {
    args.addAll(options.toArgs());
  }
  await _bridge.executor.execute([..._connection.arguments, ...args, packageName], debug: debug);
}