setIcon method
Sets the icon for the browser action. The icon can be specified as the
path to an image file, as the pixel data from a canvas element, or as a
dictionary of one of those. Either the path
or the imageData
property
must be specified.
Implementation
Future<void> setIcon(SetIconDetails details) async {
await promiseToFuture<void>($js.chrome.browserAction.setIcon(details.toJS));
}