getHeight method

  1. @protected
double getHeight(
  1. int index,
  2. int count,
  3. double width,
  4. double height,
  5. double fontHeight,
  6. double textPadding,
  7. bool drawText,
)
inherited

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);
}