setBadgeText method
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));
}