buildLegendItems method

  1. @override
List<LegendItem>? buildLegendItems(
  1. int index
)
override

Builds the legend item.

Implementation

@override
List<LegendItem>? buildLegendItems(int index) {
  final List<LegendItem>? items = super.buildLegendItems(index);
  if (trendlineContainer != null) {
    items!.addAll(trendlineContainer!.buildLegendItems(index, this)!);
  }
  return items;
}