LinePointHighlighter<D> constructor
LinePointHighlighter<D> ({
- SelectionModelType? selectionModelType,
- double? defaultRadiusPx,
- double? radiusPaddingPx,
- LinePointHighlighterFollowLineType? showHorizontalFollowLine,
- LinePointHighlighterFollowLineType? showVerticalFollowLine,
- List<
int> ? dashPattern, - bool? drawFollowLinesAcrossChart,
- SymbolRenderer? symbolRenderer,
Implementation
LinePointHighlighter(
{SelectionModelType? selectionModelType,
double? defaultRadiusPx,
double? radiusPaddingPx,
LinePointHighlighterFollowLineType? showHorizontalFollowLine,
LinePointHighlighterFollowLineType? showVerticalFollowLine,
List<int>? dashPattern,
bool? drawFollowLinesAcrossChart,
SymbolRenderer? symbolRenderer})
: selectionModelType = selectionModelType ?? SelectionModelType.info,
defaultRadiusPx = defaultRadiusPx ?? 4.0,
radiusPaddingPx = radiusPaddingPx ?? 2.0,
showHorizontalFollowLine =
showHorizontalFollowLine ?? LinePointHighlighterFollowLineType.none,
showVerticalFollowLine = showVerticalFollowLine ??
LinePointHighlighterFollowLineType.nearest,
dashPattern = dashPattern ?? [1, 3],
drawFollowLinesAcrossChart = drawFollowLinesAcrossChart ?? true,
symbolRenderer = symbolRenderer ?? CircleSymbolRenderer() {
_lifecycleListener =
LifecycleListener<D>(onAxisConfigured: _updateViewData);
}