BarRendererConfig<D> constructor

BarRendererConfig<D>({
  1. String? customRendererId,
  2. CornerStrategy? cornerStrategy,
  3. FillPatternType? fillPattern,
  4. BarGroupingType? groupingType,
  5. int layoutPaintOrder = LayoutViewPaintOrder.bar,
  6. int minBarLengthPx = 0,
  7. int? maxBarWidthPx,
  8. int stackedBarPaddingPx = 1,
  9. double strokeWidthPx = 0.0,
  10. BarRendererDecorator<D>? barRendererDecorator,
  11. SymbolRenderer? symbolRenderer,
  12. List<int>? weightPattern,
})

Implementation

BarRendererConfig({
  String? customRendererId,
  CornerStrategy? cornerStrategy,
  FillPatternType? fillPattern,
  BarGroupingType? groupingType,
  int layoutPaintOrder = LayoutViewPaintOrder.bar,
  int minBarLengthPx = 0,
  int? maxBarWidthPx,
  int stackedBarPaddingPx = 1,
  double strokeWidthPx = 0.0,
  this.barRendererDecorator,
  SymbolRenderer? symbolRenderer,
  List<int>? weightPattern,
})  : cornerStrategy = cornerStrategy ?? const ConstCornerStrategy(2),
      super(
        customRendererId: customRendererId,
        groupingType: groupingType ?? BarGroupingType.grouped,
        layoutPaintOrder: layoutPaintOrder,
        minBarLengthPx: minBarLengthPx,
        maxBarWidthPx: maxBarWidthPx,
        fillPattern: fillPattern,
        stackedBarPaddingPx: stackedBarPaddingPx,
        strokeWidthPx: strokeWidthPx,
        symbolRenderer: symbolRenderer,
        weightPattern: weightPattern,
      );