getBadgeText method
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 promiseToFuture<String>(
$js.chrome.action.getBadgeText(details.toJS));
return $res;
}