bottomLine static method
Generates a bottom border line of length repeated lineSymbols.
ConsoleUtils.bottomLine(5); // ─────
ConsoleUtils.bottomLine(5, withCorner: true); // └─────
Implementation
static String bottomLine(
int length, {
String lineSymbol = '─',
bool withCorner = false,
}) {
assert(length > 0, 'Line length must be greater than zero.');
final line = lineSymbol * length;
return withCorner ? '└$line' : line;
}