setPopup method

Future<void> setPopup(
  1. SetPopupDetails details
)

Sets the HTML document to be opened as a popup when the user clicks on the page action's icon.

Implementation

Future<void> setPopup(SetPopupDetails details) async {
  await promiseToFuture<void>($js.chrome.pageAction.setPopup(details.toJS));
}