getResources method

Future<List<Resource>> getResources()

Retrieves the list of resources from the inspected page. returns A function that receives the list of resources when the request completes.

Implementation

Future<List<Resource>> getResources() async {
  var $res = await $js.chrome.devtools.inspectedWindow.getResources().toDart;
  return $res.toDart
      .cast<$js.Resource>()
      .map((e) => Resource.fromJS(e))
      .toList();
}