executeScript method

void executeScript(
  1. String js
)

Executes raw JavaScript in the chart page.

Advanced, unsafe escape hatch retained for 1.x compatibility: the caller is responsible for escaping every value it interpolates. Prefer the typed methods below, which travel as validated JSON and cannot inject script.

Implementation

void executeScript(String js) {
  _bridge?.runUnsafeScript(js);
}