words property

List<String> get words

Returns a list of words in this string.

Example: 'hello world'.words -> ['hello', 'world'].

Implementation

List<String> get words => split(RegExp(r'\s+'));