getUnderline static method

String getUnderline(
  1. int length, {
  2. String lineSymbol = '─',
  3. bool withCorner = false,
})

Method returns a line for the bottom of the message

Implementation

static String getUnderline(
  int length, {
  String lineSymbol = '─',
  bool withCorner = false,
}) {
  final line = lineSymbol * length;
  if (withCorner) {
    return '└$line';
  }
  return line;
}