mainPaneHeight property
double
get
mainPaneHeight
Height of the main chart canvas pane (excluding sub-pane and bottom time axis).
Implementation
double get mainPaneHeight {
final totalHeight = _viewport.viewportHeight;
final availableHeight = (totalHeight - 24.0).clamp(10.0, totalHeight);
if (_subPaneResult != null) {
return availableHeight * (1.0 - 0.25);
}
return availableHeight;
}