setExpression method

void setExpression(
  1. String expression,
  2. String? rootTitle,
  3. JSFunction? callback
)

Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane. expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch. rootTitle An optional title for the root of the expression tree. callback A callback invoked after the sidebar pane is updated with the expression evaluation results.

Implementation

void setExpression(
  String expression,
  String? rootTitle,
  JSFunction? callback,
) {
  _wrapped.setExpression(
    expression,
    rootTitle,
    callback,
  );
}