headerReservedHeight static method
Top margin for title + subtitle block, including a gap before the plot.
Implementation
static double headerReservedHeight(ChartConfig config) {
var height = 0.0;
if (_hasText(config.title)) {
height += _titleLineHeight;
}
if (_hasText(config.subtitle)) {
height += _subtitleLineHeight;
}
if (height > 0) {
height += _headerBottomGap;
}
return height;
}