BarRenderer<D>.internal constructor

  1. @protected
BarRenderer<D>.internal({
  1. required BarRendererConfig<Object?> config,
  2. required String rendererId,
})

This constructor is protected because it is used by child classes, which cannot call the factory in their own constructors.

Implementation

@protected
BarRenderer.internal({
  required BarRendererConfig<Object?> config,
  required String rendererId,
})  : barRendererDecorator = config.barRendererDecorator,
      _stackedBarPaddingPx = config.stackedBarPaddingPx,
      _barGroupInnerPaddingPx = config.barGroupInnerPaddingPx,
      super(
          config: config,
          rendererId: rendererId,
          layoutPaintOrder: config.layoutPaintOrder ?? 0);