ChartLegendScope constructor
const
ChartLegendScope({
- Key? key,
- required List<
ChartDataSet> dataSets, - required Widget builder(
- BuildContext context,
- List<
ChartDataSet> visibleDataSets
- ChartVisibilityController? controller,
- LegendPosition position = LegendPosition.bottom,
- double spacing = 12.0,
- ChartTheme? theme,
- String seriesLabelFor(
- Color color,
- List<
ChartDataSet> group
- bool showLegend = true,
Implementation
const ChartLegendScope({
super.key,
required this.dataSets,
required this.builder,
this.controller,
this.position = LegendPosition.bottom,
this.spacing = 12.0,
this.theme,
this.seriesLabelFor,
this.showLegend = true,
});