refresh method

void refresh([
  1. bool redraw = true
])

Refresh the chart with the latest options

Implementation

void refresh([bool redraw = true]) {
  String json = options.toJSON();

  if (debug) {
    debugPrint(json);
  }

  view.webViewController
      .runJavaScript('highcharts_flutter.update($json, $redraw);');
}