ChartLegend constructor

const ChartLegend({
  1. Key? key,
  2. required List<ChartLegendItem> items,
  3. Set<Color> hidden = const <Color>{},
  4. ValueChanged<Color>? onToggle,
  5. ChartTheme? theme,
  6. Axis direction = Axis.horizontal,
  7. double runSpacing = 8.0,
  8. double spacing = 16.0,
  9. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
  10. double swatchSize = 12.0,
  11. TextStyle? labelStyle,
})

Implementation

const ChartLegend({
  super.key,
  required this.items,
  this.hidden = const <Color>{},
  this.onToggle,
  this.theme,
  this.direction = Axis.horizontal,
  this.runSpacing = 8.0,
  this.spacing = 16.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
  this.swatchSize = 12.0,
  this.labelStyle,
});