wordRangeForTransform function
({int end, int start})?
wordRangeForTransform(
- List<
String> graphemes, - int offset, {
- required GraphemePredicate isWord,
Implementation
({int start, int end})? wordRangeForTransform(
List<String> graphemes,
int offset, {
required GraphemePredicate isWord,
}) {
return nextWordRange(graphemes, offset, isWord: isWord) ??
previousWordRange(graphemes, offset, isWord: isWord);
}