itemWidth method

double itemWidth(
  1. Size size
)

Calculate item width based on current Size and ChartState

Implementation

double itemWidth(Size size) {
  return max(itemOptions.minBarWidth ?? 0.0,
      min(itemOptions.maxBarWidth ?? double.infinity, size.width));
}