openResource method

void openResource(
  1. String url,
  2. int lineNumber,
  3. int? columnNumber,
  4. JSFunction? callback,
)

Requests DevTools to open a URL in a Developer Tools panel. url The URL of the resource to open. lineNumber Specifies the line number to scroll to when the resource is loaded. columnNumber Specifies the column number to scroll to when the resource is loaded. callback A function that is called when the resource has been successfully loaded.

Implementation

void openResource(
  String url,
  int lineNumber,
  int? columnNumber,
  JSFunction? callback,
) {
  $js.chrome.devtools.panels.openResource(
    url,
    lineNumber,
    columnNumber,
    callback,
  );
}