decorate method
void
decorate(
- Iterable<
ImmutableBarRendererElement< barElements,D> > - ChartCanvas canvas,
- GraphicsFactory graphicsFactory, {
- required Rectangle<
int> drawBounds, - required double animationPercent,
- required bool renderingVertically,
- bool rtl = false,
override
Implementation
@override
void decorate(
Iterable<ImmutableBarRendererElement<D>> barElements,
ChartCanvas canvas,
GraphicsFactory graphicsFactory, {
required Rectangle<int> drawBounds,
required double animationPercent,
required bool renderingVertically,
bool rtl = false,
}) {
// Only decorate the bars when animation is at 100%.
if (animationPercent != 1.0) {
return;
}
if (renderingVertically) {
_decorateVerticalBars(
barElements,
canvas,
graphicsFactory,
drawBounds,
rtl,
);
} else {
_decorateHorizontalBars(
barElements,
canvas,
graphicsFactory,
drawBounds,
rtl,
);
}
}