shortenCode static method
Implementation
static String shortenCode(String str) {
return str
.replaceAll(RegExp(r'\s{2,}'), '')
.replaceAllMapped(RegExp(r'[\n\r\t\s]*([,{}=;:()?|&])[\n\r\t\s]*'),
(Match m) => "${m[1]}")
.replaceAll(RegExp(r';}'), '}');
}