wordBoundaries property

WordBoundary get wordBoundaries

Returns a TextBoundary that can be used to perform word boundary analysis on the current text.

This TextBoundary uses word boundary rules defined in Unicode Standard Annex #29.

Currently word boundary analysis can only be performed after layout has been called.

Implementation

WordBoundary get wordBoundaries => WordBoundary._(text!, _layoutCache!.paragraph);