showOutput method

List<TextSpan> showOutput()

Implementation

List<TextSpan> showOutput() {
  final List<TextSpan> texts = [];
  texts.addAll((output).map((item) => TextSpan(text: "$item\n")).toList());
  texts.addAll((errorOutput.map((item) =>
      TextSpan(text: "$item\n", style: const TextStyle(color: Colors.red)))));
  debugPrint("Showing output for $title command ${output.length}");
  debugPrint("Showing errorOutput for $title command ${errorOutput.length}");
  return texts;
}