getBadgeText method

Future<String> getBadgeText(
  1. TabDetails details
)

Gets the badge text of the action. If no tab is specified, the non-tab-specific badge text is returned. If displayActionCountAsBadgeText is enabled, a placeholder text will be returned unless the declarativeNetRequestFeedback permission is present or tab-specific badge text was provided.

Implementation

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