getPartByTex method
Implementation
SingleStringMathTex? getPartByTex(String tex,
{bool substring = true, bool caseSensitive = true}) {
var allParts =
getPartsByTex(tex, substring: substring, caseSensitive: caseSensitive);
return allParts.isNotEmpty ? allParts.first : null;
}