FluentChartImageExporter constructor

FluentChartImageExporter({
  1. required GlobalKey<State<StatefulWidget>> boundaryKey,
  2. required List<FluentChartLegendItem> legends,
  3. FluentChartTextMeasurer? measurer,
  4. TextStyle legendTextStyle = const TextStyle(fontSize: 12),
  5. Set<String> selectedLegends = const <String>{},
  6. bool centerLegends = false,
  7. bool isRtl = false,
})

Creates an exporter over the boundary at boundaryKey.

Implementation

FluentChartImageExporter({
  required this.boundaryKey,
  required this.legends,
  FluentChartTextMeasurer? measurer,
  this.legendTextStyle = const TextStyle(fontSize: 12),
  this.selectedLegends = const <String>{},
  this.centerLegends = false,
  this.isRtl = false,
}) : measurer = measurer ?? FluentChartTextMeasurer();