BarLaneRendererConfig constructor

BarLaneRendererConfig({
  1. String? customRendererId,
  2. CornerStrategy? cornerStrategy,
  3. String emptyLaneLabel = 'No data',
  4. FillPatternType? fillPattern,
  5. BarGroupingType? groupingType,
  6. int layoutPaintOrder = LayoutViewPaintOrder.bar,
  7. bool mergeEmptyLanes = false,
  8. int minBarLengthPx = 0,
  9. bool renderNegativeLanes = false,
  10. int stackedBarPaddingPx = 1,
  11. double strokeWidthPx = 0.0,
  12. BarRendererDecorator<String>? barRendererDecorator,
  13. SymbolRenderer? symbolRenderer,
  14. Color? backgroundBarColor,
  15. List<int>? weightPattern,
})

Implementation

BarLaneRendererConfig({
  String? customRendererId,
  CornerStrategy? cornerStrategy,
  this.emptyLaneLabel = 'No data',
  FillPatternType? fillPattern,
  BarGroupingType? groupingType,
  int layoutPaintOrder = LayoutViewPaintOrder.bar,
  this.mergeEmptyLanes = false,
  int minBarLengthPx = 0,
  bool renderNegativeLanes = false,
  int stackedBarPaddingPx = 1,
  double strokeWidthPx = 0.0,
  BarRendererDecorator<String>? barRendererDecorator,
  SymbolRenderer? symbolRenderer,
  Color? backgroundBarColor,
  List<int>? weightPattern,
})  : backgroundBarColor =
          backgroundBarColor ?? StyleFactory.style.noDataColor,
      renderNegativeLanes = renderNegativeLanes,
      super(
        barRendererDecorator: barRendererDecorator,
        cornerStrategy: cornerStrategy,
        customRendererId: customRendererId,
        groupingType: groupingType ?? BarGroupingType.grouped,
        layoutPaintOrder: layoutPaintOrder,
        minBarLengthPx: minBarLengthPx,
        fillPattern: fillPattern,
        stackedBarPaddingPx: stackedBarPaddingPx,
        strokeWidthPx: strokeWidthPx,
        symbolRenderer: symbolRenderer,
        weightPattern: weightPattern,
      );