setThemeChangeHandler method

void setThemeChangeHandler(
  1. JSFunction<Function>? callback
)

Specifies the function to be called when the current theme changes in DevTools. 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 current theme changes in DevTools.

Implementation

void setThemeChangeHandler(JSFunction? callback) {
  $js.chrome.devtools.panels.setThemeChangeHandler(callback);
}