LinePointHighlighter<D> constructor

LinePointHighlighter<D>({
  1. SelectionModelType? selectionModelType,
  2. double? defaultRadiusPx,
  3. double? radiusPaddingPx,
  4. LinePointHighlighterFollowLineType? showHorizontalFollowLine,
  5. LinePointHighlighterFollowLineType? showVerticalFollowLine,
  6. List<int>? dashPattern,
  7. bool? drawFollowLinesAcrossChart,
  8. 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);
}