createSeparator method

String createSeparator({
  1. bool useColors = true,
  2. int length = 80,
})

Creates a separator line

Implementation

String createSeparator({bool useColors = true, int length = 80}) {
  final line = '═' * length;
  if (useColors) {
    return '${_gray}$line$_reset';
  }
  return line;
}