setUninstallURL method
Sets the URL to be visited upon uninstallation. This may be used to clean
up server-side data, do analytics, and implement surveys. Maximum 1023
characters.
url URL to be opened after the extension is uninstalled. This URL must
have an http: or https: scheme. Set an empty string to not open a new
tab upon uninstallation.
returns Promise that resolves when the uninstall URL is set. If the
given URL is invalid, the promise will be rejected.
Implementation
Future<void> setUninstallURL(String url) async {
await $js.chrome.runtime.setUninstallURL(url).toDart;
}