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?> super.config,
  required super.rendererId,
})  : barRendererDecorator = config.barRendererDecorator,
      _stackedBarPaddingPx = config.stackedBarPaddingPx,
      _barGroupInnerPaddingPx = config.barGroupInnerPaddingPx,
      super(
        layoutPaintOrder: config.layoutPaintOrder ?? 0,
      );