withBodyWidthLimits method

CandlestickChartStyle withBodyWidthLimits(
  1. double minBodyWidth,
  2. double maxBodyWidth
)

Replaces CandlestickChartStyle.minBodyWidth and CandlestickChartStyle.maxBodyWidth together.

The parameters are assert-coupled, so they only move as a pair.

Implementation

CandlestickChartStyle withBodyWidthLimits(
  double minBodyWidth,
  double maxBodyWidth,
) => copyWith(minBodyWidth: minBodyWidth, maxBodyWidth: maxBodyWidth);