setBadgeText method

Future<void> setBadgeText(
  1. SetBadgeTextDetails details
)

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

Implementation

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