executeScript method
executeScript enables FC API calls. You can pass js code in string variable and the function will execute the script. Refer the chart object in your js code using a global variable like so: globalFusionCharts.chartType('column2d')
Implementation
void executeScript(String js) async {
if (_webViewController != null) {
try {
await _webViewController?.evaluateJavascript(source: js);
} catch (e) {
print(e.toString());
}
}
}