setBadgeText method

Future<void> setBadgeText(
  1. SetBadgeTextDetails details
)

Sets the badge text for the browser action. The badge is displayed on top of the icon.

Implementation

Future<void> setBadgeText(SetBadgeTextDetails details) async {
  await promiseToFuture<void>(
      $js.chrome.browserAction.setBadgeText(details.toJS));
}