Legend constructor

const Legend({
  1. Key? key,
  2. required List<LegendEntry> entries,
  3. LegendConfig config = const LegendConfig(),
  4. void onTap(
    1. LegendEntry entry,
    2. int index
    )?,
})

Creates a legend.

Implementation

const Legend({
  super.key,
  required this.entries,
  this.config = const LegendConfig(),
  this.onTap,
});