uninstallSelf method
Uninstalls the calling extension. Note: This function can be used without requesting the 'management' permission in the manifest. This function does not work in managed environments when the user is not allowed to uninstall the specified extension/app.
Implementation
Future<void> uninstallSelf(UninstallOptions? options) async {
await promiseToFuture<void>(
$js.chrome.management.uninstallSelf(options?.toJS));
}