LegendItemBuilder<T, D> typedef

LegendItemBuilder<T, D> = Widget Function(String legendText, ChartSeries<T, D>? series, ChartPoint<D> point, int seriesIndex)

Returns the widget.

Customize the appearance of legend items with your template by using legendItemBuilder property of legend.

Implementation

typedef LegendItemBuilder<T, D> = Widget Function(
  String legendText,
  ChartSeries<T, D>? series,
  ChartPoint<D> point,
  int seriesIndex,
);