codeInfoLanguage function
The first word of a fence's info string, everything before its first whitespace, as written: the word CommonMark reads as the language.
Implementation
String codeInfoLanguage(String info) {
final end = info.indexOf(_whitespace);
return end < 0 ? info : info.substring(0, end);
}