getHeight method
Get the bar height for a specific index
Implementation
@protected
double getHeight(
int index,
int count,
double width,
double height,
double fontHeight,
double textPadding,
bool drawText,
) {
return height - (drawText ? fontHeight + textPadding : 0);
}