SeriesLegend<D> constructor
SeriesLegend<D> ({
- SelectionModelType? selectionModelType,
- LegendEntryGenerator<
D> ? legendEntryGenerator, - MeasureFormatter? measureFormatter,
- MeasureFormatter? secondaryMeasureFormatter,
- bool? showMeasures,
- LegendDefaultMeasure? legendDefaultMeasure,
- TextStyleSpec? entryTextStyle,
Implementation
SeriesLegend({
SelectionModelType? selectionModelType,
LegendEntryGenerator<D>? legendEntryGenerator,
MeasureFormatter? measureFormatter,
MeasureFormatter? secondaryMeasureFormatter,
bool? showMeasures,
LegendDefaultMeasure? legendDefaultMeasure,
TextStyleSpec? entryTextStyle,
}) : super(
selectionModelType: selectionModelType ?? SelectionModelType.info,
legendEntryGenerator:
legendEntryGenerator ?? PerSeriesLegendEntryGenerator(),
entryTextStyle: entryTextStyle) {
// Calling the setters will automatically use non-null default values.
this.showMeasures = showMeasures;
this.legendDefaultMeasure = legendDefaultMeasure;
this.measureFormatter = measureFormatter;
this.secondaryMeasureFormatter = secondaryMeasureFormatter;
}