buildTop method

String buildTop(
  1. int innerWidth
)

Builds the top border line for a given width.

Implementation

String buildTop(int innerWidth) {
  if (!isVisible) return '';
  return '$topLeft${top * innerWidth}$topRight';
}