getViews method

List<JSObject> getViews(
  1. GetViewsFetchProperties? fetchProperties
)

Returns an array of the JavaScript 'window' objects for each of the pages running inside the current extension. returns Array of global objects

Implementation

List<JSObject> getViews(GetViewsFetchProperties? fetchProperties) {
  return $js.chrome.extension
      .getViews(fetchProperties?.toJS)
      .toDart
      .cast<JSObject>()
      .map((e) => e)
      .toList();
}