getBadgeText method

Future<String> getBadgeText(
  1. TabDetails details
)

Gets the badge text of the browser action. If no tab is specified, the non-tab-specific badge text is returned.

Implementation

Future<String> getBadgeText(TabDetails details) async {
  var $res = await promiseToFuture<String>(
      $js.chrome.browserAction.getBadgeText(details.toJS));
  return $res;
}