LegendOrdinal<T> constructor

const LegendOrdinal<T>({
  1. Key? key,
  2. required dynamic scale,
  3. Map<T, String>? labels,
  4. LegendConfig config = const LegendConfig(),
  5. void onTap(
    1. T value,
    2. int index
    )?,
  6. Set<T>? selectedValues,
  7. double inactiveOpacity = 0.3,
})

Creates an ordinal legend.

Implementation

const LegendOrdinal({
  super.key,
  required this.scale,
  this.labels,
  this.config = const LegendConfig(),
  this.onTap,
  this.selectedValues,
  this.inactiveOpacity = 0.3,
});