calculateWidth method

double calculateWidth()

Calculates the approximate width of this tab.

Implementation

double calculateWidth() {
  return (text?.length.let((x) => x * 16 * 0.75) ?? 0) + (icon != null ? 17 : 0);
}