userMessage method

void userMessage(
  1. String text
)

Implementation

void userMessage(String text) {
  gap();
  final lines = <String>[];
  for (final line in text.trimRight().split('\n')) {
    for (final wrapped in wrapText(line, width - 2)) {
      lines.add(Style.gray('${lines.isEmpty ? '>' : ' '} $wrapped'));
    }
  }
  print(lines);
}