getPartByTex method

SingleStringMathTex? getPartByTex(
  1. String tex, {
  2. bool substring = true,
  3. bool caseSensitive = true,
})

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;
}