ChromeDevtoolsPanels class

Properties

elements ElementsPanel
Elements panel.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sources SourcesPanel
Sources panel.
no setter
themeName String
The name of the color theme set in user's DevTools settings. Possible values: default (the default) and dark.
no setter

Methods

create(String title, String iconPath, String pagePath) Future<ExtensionPanel>
Creates an extension panel. title Title that is displayed next to the extension icon in the Developer Tools toolbar. iconPath Path of the panel's icon relative to the extension directory. pagePath Path of the panel's HTML page relative to the extension directory. returns A function that is called when the panel is created.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openResource(String url, int lineNumber, int? columnNumber, JSFunction? callback) → void
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.
setOpenResourceHandler(JSFunction? callback) → void
Specifies the function to be called when the user clicks a resource link in the Developer Tools window. To unset the handler, either call the method with no parameters or pass null as the parameter. callback A function that is called when the user clicks on a valid resource link in Developer Tools window. Note that if the user clicks an invalid URL or an XHR, this function is not called.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited