getGuessHighlightLength method
- {required String searchTerm}
Get preliminary highlight length before a dictionary search.
Implementation
int getGuessHighlightLength({
required String searchTerm,
}) {
return textToWords(searchTerm)
.firstWhere((e) => e.trim().isNotEmpty)
.trim()
.length;
}