parseCodeLines function

List<String> parseCodeLines(
  1. String text
)

Parse code lines.

Implementation

List<String> parseCodeLines(String text) => text.split('\n').map((l) => l.trim()).where((l) => l.isNotEmpty).toList();