exportPng method

Future<Uint8List> exportPng({
  1. double pixelRatio = 3,
})

PNG bytes of the chart canvas (excludes overlay tooltips).

Implementation

Future<Uint8List> exportPng({double pixelRatio = 3}) async {
  await _ensureFrame();
  return ChartExport.toPng(repaintBoundaryKey, pixelRatio: pixelRatio);
}