getTopline static method

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

Method returns a line for the top of the message

Implementation

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