words property

Iterable<string> get words

Gets all words in the text.

Implementation

Iterable<string> get words => text.splitWords(WordSplitMode.keepSplitters).defaultIfEmpty(text);