Legend constructor
const
Legend({
- Key? key,
- required List<
LegendEntry> entries, - LegendConfig config = const LegendConfig(),
- void onTap(
- LegendEntry entry,
- int index
Creates a legend.
Implementation
const Legend({
super.key,
required this.entries,
this.config = const LegendConfig(),
this.onTap,
});