itemWidth method
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));
}
Calculate item width based on current Size and ChartState
double itemWidth(Size size) {
return max(itemOptions.minBarWidth ?? 0.0,
min(itemOptions.maxBarWidth ?? double.infinity, size.width));
}