headerReservedHeight static method
Top margin for title + subtitle block.
Implementation
static double headerReservedHeight(ChartConfig config) {
var height = 0.0;
if (_hasText(config.title)) {
height += _titleLineHeight;
}
if (_hasText(config.subtitle)) {
height += _subtitleLineHeight;
}
return height;
}