getBadgeBackgroundColor method

Future<List<int>> getBadgeBackgroundColor(
  1. TabDetails details
)

Gets the background color of the browser action.

Implementation

Future<List<int>> getBadgeBackgroundColor(TabDetails details) async {
  var $res = await promiseToFuture<$js.ColorArray>(
      $js.chrome.browserAction.getBadgeBackgroundColor(details.toJS));
  return $res.toDart.cast<int>().map((e) => e).toList();
}