build method
Widget
build(
- BuildContext context,
- LegendState legendState,
- Legend legend, {
- bool showMeasures = false,
inherited
Implementation
@override
Widget build(BuildContext context, common.LegendState legendState,
common.Legend legend,
{bool showMeasures = false}) {
final entryWidgets = legendState.legendEntries.map((entry) {
var isHidden = false;
if (legend is common.SeriesLegend) {
isHidden = legend.isSeriesHidden(entry.series.id);
}
return legendEntryLayout.build(
context, entry, legend as TappableLegend, isHidden,
showMeasures: showMeasures);
}).toList();
return legendLayout.build(context, entryWidgets);
}