Legend<D> constructor
Legend<D> ({
- required SelectionModelType selectionModelType,
- required LegendEntryGenerator<
D> legendEntryGenerator, - TextStyleSpec? entryTextStyle,
Implementation
Legend({
required this.selectionModelType,
required this.legendEntryGenerator,
TextStyleSpec? entryTextStyle,
}) {
_lifecycleListener = LifecycleListener(
onPostprocess: _postProcess, onPreprocess: _preProcess, onData: onData);
legendEntryGenerator.entryTextStyle = entryTextStyle;
// Calling the setter will automatically use a non-null default value.
showOverlaySeries = null;
}