calculateWidth method

double calculateWidth()

Implementation

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