uninstall method

Future<void> uninstall(
  1. String id,
  2. UninstallOptions? options
)

Uninstalls a currently installed app or extension. Note: This function does not work in managed environments when the user is not allowed to uninstall the specified extension/app. If the uninstall fails (e.g. the user cancels the dialog) the promise will be rejected or the callback will be called with runtime.lastError set. id This should be the id from an item of management.ExtensionInfo.

Implementation

Future<void> uninstall(
  String id,
  UninstallOptions? options,
) async {
  await promiseToFuture<void>($js.chrome.management.uninstall(
    id,
    options?.toJS,
  ));
}