entronad / flutter_echarts

A Flutter widget to use Apache ECharts in a reactive way.

Home Page:https://pub.dev/packages/flutter_echarts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call Dart function with parameters

SuricateTrading opened this issue · comments

commented

How to call a dart function inside the option string with parameters?
I tried the standard @js way but it doesn't work. The function is never called.

Example:

option: '''
{
  // ...
  series: [
    {
      equation: {
        x: {
          step: 1
        },
        y: {
          step: 1
        },
        z: function (x, y) {
          return `functionName(x, y)`;
        }
      },
    }
  ]
}
''',