getWidth method
- KnowledgePanelTableCellWidthComputer computer
Implementation
double getWidth(KnowledgePanelTableCellWidthComputer computer) {
double result = computer.computeTextSize(text, _getStyle(computer)).width;
if (iconUrl != null) {
result += iconWidth;
}
if (percent != null) {
result += percentageWidth;
}
return result;
}